feat: csp list

This commit is contained in:
Gabe Yuan
2024-03-26 12:05:35 +08:00
parent 6fa183dc56
commit 06a51df834

View File

@@ -132,9 +132,6 @@ browser.runtime.onInstalled.addListener(() => {
// 右键菜单 // 右键菜单
addContextMenus(); addContextMenus();
// 禁用CSP
updateCspRules();
}); });
/** /**
@@ -156,6 +153,9 @@ browser.runtime.onStartup.addListener(async () => {
// firefox重启后菜单会消失,故重复添加 // firefox重启后菜单会消失,故重复添加
addContextMenus(contextMenuType); addContextMenus(contextMenuType);
// 禁用CSP
updateCspRules();
// 同步订阅规则 // 同步订阅规则
trySyncAllSubRules({ subrulesList }); trySyncAllSubRules({ subrulesList });
}); });