Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Commit

Permalink
Merge pull request #122 from Sneezry/dev-unencrypted
Browse files Browse the repository at this point in the history
disable unencrypted secret warning
  • Loading branch information
Sneezry authored May 24, 2017
2 parents 970dd85 + db06000 commit a88e1cc
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions javascript/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,19 +659,19 @@ function showCodes(result) {
'<div id="showqr-' + i + '" class="showqr"><i class="fa fa-qrcode"></i></div>' +
'<div class="movehandle"><i class="fa fa-bars"></i></div>';
document.getElementById('codeList').appendChild(el);
if (!_secret[i].encrypted) {
el.setAttribute('unencrypted', 'true');
var warning = document.createElement('div');
warning.className = 'warning';
warning.innerText = chrome.i18n.getMessage('unencrypted_secret_warning');
warning.onclick = function () {
document.getElementById('security').className = 'fadein';
setTimeout(function () {
document.getElementById('security').style.opacity = 1;
}, 200);
};
el.appendChild(warning);
}
//if (!_secret[i].encrypted) {
// el.setAttribute('unencrypted', 'true');
// var warning = document.createElement('div');
// warning.className = 'warning';
// warning.innerText = chrome.i18n.getMessage('unencrypted_secret_warning');
// warning.onclick = function () {
// document.getElementById('security').className = 'fadein';
// setTimeout(function () {
// document.getElementById('security').style.opacity = 1;
// }, 200);
// };
// el.appendChild(warning);
//}

}
var codeCopy = document.getElementsByClassName('code');
Expand Down

0 comments on commit a88e1cc

Please sign in to comment.