@@ -103,15 +103,14 @@ clipboard.on('success', function (e) { | |||||
}); | }); | ||||
document.getElementById('displayOptionsButton').addEventListener('click', toggleBlocks); | document.getElementById('displayOptionsButton').addEventListener('click', toggleBlocks); | ||||
function toggleVisibility(className) { | function toggleVisibility(className) { | ||||
var elements = document.getElementsByClassName(className); | var elements = document.getElementsByClassName(className); | ||||
for (var i = 0; i < elements.length; i++) { | for (var i = 0; i < elements.length; i++) { | ||||
var e = elements[i]; | var e = elements[i]; | ||||
if (e.style.display === 'block') { | |||||
e.style.display = 'none'; | |||||
} else { | |||||
if (e.style.display === 'none') { | |||||
e.style.display = 'block'; | e.style.display = 'block'; | ||||
} else { | |||||
e.style.display = 'none'; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -2,7 +2,7 @@ | |||||
"description": "chrome and firefox web extension for lesspass password manager", | "description": "chrome and firefox web extension for lesspass password manager", | ||||
"manifest_version": 2, | "manifest_version": 2, | ||||
"name": "lesspass", | "name": "lesspass", | ||||
"version": "0.0.3", | |||||
"version": "0.0.4", | |||||
"homepage_url": "https://github.com/lesspass/webextension", | "homepage_url": "https://github.com/lesspass/webextension", | ||||
"icons": { | "icons": { | ||||
"64": "icons/logo-64.png" | "64": "icons/logo-64.png" | ||||
@@ -1 +1 @@ | |||||
*{border-radius:0!important}i{cursor:pointer}#autoLoginButton,.option-block{display:none}#displayOptionsButton{cursor:pointer}.card{border:none}#fingerprint{display:none} | |||||
*{border-radius:0!important}i{cursor:pointer}#autoLoginButton{display:none}#displayOptionsButton{cursor:pointer}.card{border:none}#fingerprint{display:none} |