mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-06-21 16:04:06 +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("-");
|
guidBits.push("-");
|
||||||
context = context.parentContext;
|
context = context.parentContext;
|
||||||
}
|
}
|
||||||
return $tw.utils.toBase64(guidBits.join(""));
|
return guidBits.join("");
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.element = ElementRenderer
|
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
|
Return the number of keys in an object
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user