Skip to content

Commit 2b93ccd

Browse files
committed
Fix backstage crash when accessing crypto functions
See #260 (comment)
1 parent 010d2eb commit 2b93ccd

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

package-lock.json

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/js/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ var backstageWikiFolder = $tw.desktop.utils.wiki.getBackstageWikiFolder(gui.App.
104104
// Show dev tools on F12
105105
$tw.desktop.utils.devtools.trapDevTools(backstageWindow,document);
106106

107+
108+
// First part of boot process
109+
var _sjcl = require("../tiddlywiki/boot/sjcl.js");
110+
global.sjcl = _sjcl;
111+
window.sjcl = _sjcl;
112+
107113
// First part of boot process
108114
require("../tiddlywiki/boot/bootprefix.js").bootprefix($tw);
109115

0 commit comments

Comments
 (0)