From 2d2d5bf6a0f1b3c69facf81b971d3f9b875186d1 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Mon, 4 Jul 2016 11:35:07 +0200 Subject: [PATCH] add temporary fix for firefox error in windows resize --- extension/js/password-generator.js | 7 +++---- extension/manifest.json | 2 +- extension/styles/style.min.css | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/extension/js/password-generator.js b/extension/js/password-generator.js index b6ea7b4..46a0b00 100644 --- a/extension/js/password-generator.js +++ b/extension/js/password-generator.js @@ -103,15 +103,14 @@ clipboard.on('success', function (e) { }); document.getElementById('displayOptionsButton').addEventListener('click', toggleBlocks); - function toggleVisibility(className) { var elements = document.getElementsByClassName(className); for (var i = 0; i < elements.length; i++) { var e = elements[i]; - if (e.style.display === 'block') { - e.style.display = 'none'; - } else { + if (e.style.display === 'none') { e.style.display = 'block'; + } else { + e.style.display = 'none'; } } } diff --git a/extension/manifest.json b/extension/manifest.json index 9233bd7..b04a06c 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -2,7 +2,7 @@ "description": "chrome and firefox web extension for lesspass password manager", "manifest_version": 2, "name": "lesspass", - "version": "0.0.3", + "version": "0.0.4", "homepage_url": "https://github.com/lesspass/webextension", "icons": { "64": "icons/logo-64.png" diff --git a/extension/styles/style.min.css b/extension/styles/style.min.css index c0929a8..036840e 100644 --- a/extension/styles/style.min.css +++ b/extension/styles/style.min.css @@ -1 +1 @@ -*{border-radius:0!important}i{cursor:pointer}#autoLoginButton,.option-block{display:none}#displayOptionsButton{cursor:pointer}.card{border:none}#fingerprint{display:none} \ No newline at end of file +*{border-radius:0!important}i{cursor:pointer}#autoLoginButton{display:none}#displayOptionsButton{cursor:pointer}.card{border:none}#fingerprint{display:none}