1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-03-30 23:36:56 +00:00

Boot prefix should preserve $tw in the browser

This change allows raw markup tiddlers to preload configuration values
into the `$tw` global
This commit is contained in:
Jermolene 2014-10-06 10:02:20 +01:00
parent 5dd6ebff05
commit 67db9d57a2

View File

@ -99,7 +99,7 @@ return $tw
if(typeof(exports) === "undefined") {
// Set up $tw global for the browser
window.$tw = _bootprefix();
window.$tw = _bootprefix(window.$tw);
} else {
// Export functionality as a module
exports.bootprefix = _bootprefix;