MCPcopy
hub / github.com/TiddlyWiki/TiddlyDesktop / loadFileTextFn

Function loadFileTextFn

source/js/wiki-file-window.js:89–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 return $tw.wiki.getTiddlerText(self.getConfigTitle("disable-backups"),"no") !== "yes";
88 },
89 loadFileTextFn = function() {
90 return fs.readFileSync(self.pathname,"utf8");
91 };
92 $tw.desktop.utils.saving.enableSaving(this.iframe.contentDocument,areBackupsEnabledFn,loadFileTextFn);
93 // Trap links
94 $tw.desktop.utils.links.trapLinks(this.iframe.contentDocument);

Callers 1

injectClassicOverridesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected