1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-29 21:45:16 +00:00

BrowserStorage: Make sure tiddlers loaded from local storage mark wiki as dirty

Thanks @xcazin
This commit is contained in:
Jermolene
2019-02-08 15:38:23 +00:00
parent 2710fae71d
commit 6ff7a7d261
3 changed files with 20 additions and 4 deletions

View File

@@ -130,7 +130,11 @@ exports.startup = function() {
$tw.syncer = new $tw.Syncer({wiki: $tw.wiki, syncadaptor: $tw.syncadaptor});
}
// Setup the saver handler
$tw.saverHandler = new $tw.SaverHandler({wiki: $tw.wiki, dirtyTracking: !$tw.syncadaptor});
$tw.saverHandler = new $tw.SaverHandler({
wiki: $tw.wiki,
dirtyTracking: !$tw.syncadaptor,
preloadDirty: $tw.boot.preloadDirty || []
});
// Host-specific startup
if($tw.browser) {
// Install the popup manager