From 2710fae71d276c8a82e78d4f13b0d2735e0b71f5 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 8 Feb 2019 15:19:20 +0000 Subject: [PATCH] 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... --- plugins/tiddlywiki/browser-storage/rawmarkup.js | 2 +- plugins/tiddlywiki/browser-storage/startup.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/tiddlywiki/browser-storage/rawmarkup.js b/plugins/tiddlywiki/browser-storage/rawmarkup.js index 589b32af6..131b010b6 100644 --- a/plugins/tiddlywiki/browser-storage/rawmarkup.js +++ b/plugins/tiddlywiki/browser-storage/rawmarkup.js @@ -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