1
0
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:
Jeremy Ruston 2013-01-23 12:35:21 +00:00
parent 7effc49401
commit bae48d5526
2 changed files with 1 additions and 12 deletions

View File

@ -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

View File

@ -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
*/