From db06000033d51df75dfec1940fe83076fc47b144 Mon Sep 17 00:00:00 2001 From: Zhe Li Date: Wed, 24 May 2017 17:17:52 +0800 Subject: [PATCH] disable unencrypted secret warning --- javascript/popup.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/javascript/popup.js b/javascript/popup.js index 1a37591..24445db 100644 --- a/javascript/popup.js +++ b/javascript/popup.js @@ -659,19 +659,19 @@ function showCodes(result) { '
' + '
'; 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');