Skip to content

Commit bf42f05

Browse files
committed
Rebuild whitelist/blacklist regex strings if clearing lists in options page
1 parent c5fa25d commit bf42f05

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎html/updated.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1>Updated to v<span id="versionno"></span>! (Monday, May 30, 2016)</h1>
1717
<ul>
1818
<li><b>v1.0.7.1:</b><ul>
1919
<li><strong>IMPORTANT</strong> - due to the number of changes, <strong>I recommend that you restart Chrome AND also review your whitelist/blacklist (particularly trusted/distrusted domains)</strong></a></li>
20-
<li><b>v1.0.7.1</b> - optimized ScriptSafe panel performance, fixed one-time whitelist/blacklist update (for trusted/distrusted domains), and also from this version onwards ScriptSafe will wait for a browser restart before auto-updating</li>
20+
<li><b>v1.0.7.1</b> - optimized ScriptSafe panel performance, fixed one-time whitelist/blacklist update (for trusted/distrusted domains), and also from this version onwards ScriptSafe will notify you it will wait for a browser restart in order to auto-update</li>
2121
<li>significant performance improvements from a major overhaul of the core domain matching logic and other tweaks throughout ScriptSafe</li>
2222
<li>domain whitelisting/blacklisting now supports basic regex: entire domain, wildcard, and single character matching (more info in Options page - you may want to revisit your whitelist/blacklist and revise accordingly)</li>
2323
<li>added IPv6 address whitelist/blacklist support (e.g. [2001:4860:0:2001::68] - must contain square brackets)</li>

‎js/options.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ function listclear(type) {
408408
if (confirm(['Clear whitelist?','Clear blacklist?'][type])) {
409409
localStorage[['whiteList','blackList'][type]] = JSON.stringify([]);
410410
listUpdate();
411+
bkg.cacheLists();
411412
if (bkg.freshSync(2)) {
412413
notification('Settings saved and syncing in 30 seconds');
413414
} else {

0 commit comments

Comments
 (0)