mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-05 13:36:51 +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:
@@ -23,7 +23,7 @@ if(Object.prototype.hasOwnProperty.call($tw.hooks.names,hookName)) {
|
||||
|
||||
// Load tiddlers from browser storage
|
||||
function hookBootTiddlersLoaded() {
|
||||
var url = window.location.protocol === "file:" ? window.location.pathname : "",
|
||||
var url = window.location.pathname,
|
||||
log = [];
|
||||
// Step through each browsder storage item
|
||||
for(var index=0; index<window.localStorage.length; index++) {
|
||||
|
||||
Reference in New Issue
Block a user