diff --git a/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9538.tid b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9538.tid new file mode 100644 index 0000000000..7f77328068 --- /dev/null +++ b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9538.tid @@ -0,0 +1,10 @@ +title: $:/changenotes/5.4.0/#9538 +description: Fix browser storage plugin making wiki dirty +release: 5.4.0 +tags: $:/tags/ChangeNote +change-type: bugfix +change-category: plugin +github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9538 +github-contributors: Jermolene + +Fixed issue where the browser storage plugin caused the wiki to be marked as dirty every time it starts up. The problem was due to the use of a log tiddler titled `$:/info/browser/storage/persisted`, the fix is to rename it to `$:/state/browser/storage/persisted`. \ No newline at end of file diff --git a/plugins/tiddlywiki/browser-storage/settings.tid b/plugins/tiddlywiki/browser-storage/settings.tid index e6170dfb95..daffac91ea 100644 --- a/plugins/tiddlywiki/browser-storage/settings.tid +++ b/plugins/tiddlywiki/browser-storage/settings.tid @@ -34,7 +34,7 @@ This setting allows a custom alert message to be displayed when an attempt to st ! Prevent browser from evicting local storage -Permission for local storage persistence: ''{{$:/info/browser/storage/persisted}}'' +Permission for local storage persistence: ''{{$:/state/browser/storage/persisted}}'' The first time a tiddler is saved to local storage a request will be made to prevent automatic eviction of local storage for this site. This means the data will not be cleared unless the user manually clears it. diff --git a/plugins/tiddlywiki/browser-storage/startup.js b/plugins/tiddlywiki/browser-storage/startup.js index 9ab61620d6..eecd9ca8d0 100644 --- a/plugins/tiddlywiki/browser-storage/startup.js +++ b/plugins/tiddlywiki/browser-storage/startup.js @@ -17,7 +17,7 @@ exports.synchronous = true; var ENABLED_TITLE = "$:/config/BrowserStorage/Enabled", SAVE_FILTER_TITLE = "$:/config/BrowserStorage/SaveFilter", - PERSISTED_STATE_TITLE = "$:/info/browser/storage/persisted"; + PERSISTED_STATE_TITLE = "$:/state/browser/storage/persisted"; var BrowserStorageUtil = require("$:/plugins/tiddlywiki/browser-storage/util.js").BrowserStorageUtil;