mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-04-27 15:50:53 -07:00
Fix for running under node-webkit
This commit is contained in:
parent
d8a142fed5
commit
62c602e9d2
1 changed files with 1 additions and 1 deletions
|
|
@ -565,7 +565,7 @@ Crypto helper object for encrypted content. It maintains the password text in a
|
|||
the password, and to encrypt/decrypt a block of text
|
||||
*/
|
||||
$tw.utils.Crypto = function() {
|
||||
var sjcl = $tw.browser ? window.sjcl : require("./sjcl.js"),
|
||||
var sjcl = $tw.node ? require("./sjcl.js") : window.sjcl,
|
||||
currentPassword = null,
|
||||
callSjcl = function(method,inputText,password) {
|
||||
password = password || currentPassword;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue