1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-03 18:53:28 +00:00

Update the password macro so that it can be used on the server

This commit is contained in:
Jeremy Ruston 2012-10-16 18:49:13 +01:00
parent 03623587e1
commit 35ddf7a81c

View File

@ -20,8 +20,7 @@ exports.info = {
};
exports.executeMacro = function() {
var password = $tw.utils.getPassword(this.params.name);
password = password || "";
var password = $tw.browser ? $tw.utils.getPassword(this.params.name) : "";
var attributes = {
type: "password",
value: password