Skip to content

Commit

Permalink
Merge branch 'master' into firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
andryou committed Dec 5, 2017
2 parents b372bc6 + dcdce57 commit 7b7931e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/scriptsafe.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Credits and ideas: NotScripts, AdBlock Plus for Chrome, Ghostery, KB SSL Enforcer
'use strict';
var version = '1.0.9.7';
var requestTypes, synctimer, recentstimer, blackList, whiteList, distrustList, trustList, sessionBlackList, sessionWhiteList, locale;
var requestTypes, synctimer, recentstimer, reenabletimer, blackList, whiteList, distrustList, trustList, sessionBlackList, sessionWhiteList, locale;
var langs = {
'en_US': 'English (US)',
'en_GB': 'English (UK)',
Expand Down Expand Up @@ -775,12 +775,13 @@ function revokeTemp() {
sessionStorage['fpClipboard'] = JSON.stringify([]);
}
function statuschanger(duration) {
window.clearTimeout(reenabletimer);
if (localStorage['enable'] == 'true') {
saveSetting('enable', 'false');
chrome.browserAction.setIcon({path: "../img/IconDisabled.png"});
if (duration) {
duration = duration * 60 * 1000;
setTimeout(function() { saveSetting('enable', 'true'); }, duration);
reenabletimer = setTimeout(function() { saveSetting('enable', 'true'); }, duration);
}
} else {
saveSetting('enable', 'true');
Expand Down

0 comments on commit 7b7931e

Please sign in to comment.