mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 13:29:56 +00:00
Stop base64 encoding context scope IDs
The base64 encoding wasn't working on node.js, and is a bit messy
This commit is contained in:
parent
7effc49401
commit
bae48d5526
@ -269,7 +269,7 @@ ElementRenderer.prototype.getContextScopeId = function() {
|
||||
guidBits.push("-");
|
||||
context = context.parentContext;
|
||||
}
|
||||
return $tw.utils.toBase64(guidBits.join(""));
|
||||
return guidBits.join("");
|
||||
};
|
||||
|
||||
exports.element = ElementRenderer
|
||||
|
@ -24,17 +24,6 @@ exports.trim = function(str) {
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
Convert a string to base64 encoding
|
||||
*/
|
||||
exports.toBase64 = function(str) {
|
||||
if($tw.browser) {
|
||||
return window.btoa(str);
|
||||
} else {
|
||||
new Buffer(str).toString("base64");
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
Return the number of keys in an object
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user