mirror of
https://github.com/SickleSec/SnowEyes.git
synced 2026-10-24 08:54:29 +00:00
修复白名单未初始化启动失败的问题
This commit is contained in:
1 parent
65234d54d9
commit
00c9d1bdcb
1 file changed
+1
-1
+1
-1
@@ -23,7 +23,7 @@ async function initSettings() {
|
||||
hostname = window.location.hostname.toLowerCase();
|
||||
dynamicScanEnabled = result.dynamicScan === true;
|
||||
deepScanEnabled = result.deepScan === true;
|
||||
isWhitelisted = result.customWhitelist.some(domain => hostname === domain || hostname.endsWith(`.${domain}`));
|
||||
isWhitelisted = result.customWhitelist?.some(domain => hostname === domain || hostname.endsWith(`.${domain}`));
|
||||
chrome.runtime.sendMessage({ type: 'REGISTER_CONTENT', from: 'content', to: 'background' }, (response) => {
|
||||
if(isWhitelisted) return;
|
||||
tabJs = response.tabJs;
|
||||
|
||||
Reference in new issue
Block a user