mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-28 16:34:38 +00:00
BrowserStorage: Use path to make unique item names for non-file URIs
Previously, we were only using the path to disambiguate files on a file:// URI. That meant that all wikis on tiddlywiki.com was sharing the same pool of local storage...
This commit is contained in:
@@ -26,8 +26,7 @@ var SAVE_FILTER_TITLE = "$:/config/BrowserStorage/SaveFilter",
|
||||
exports.startup = function() {
|
||||
var self = this;
|
||||
// Compute our prefix for local storage keys
|
||||
var url = window.location.protocol === "file:" ? window.location.pathname : "",
|
||||
prefix = "tw5#" + url + "#";
|
||||
var prefix = "tw5#" + window.location.pathname + "#";
|
||||
// Make a logger
|
||||
var logger = new $tw.utils.Logger("browser-storage",{
|
||||
colour: "cyan"
|
||||
|
||||
Reference in New Issue
Block a user