1
0
mirror of https://gitee.com/bitdance-team/chrome-extension synced 2025-10-08 16:55:17 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

AdsBlock代码小调整

This commit is contained in:
2022-02-10 02:13:21 +08:00
parent 253eeeaf9b
commit 55c2f64ed6
2 changed files with 1 additions and 2 deletions

View File

@@ -52,7 +52,6 @@ $(function() {
// 页面加载时,更新界面开关状态
chrome.storage.sync.get('State_AdsBlock', function(budget) {
btnGoogleAds.checked = !budget.State_AdsBlock;
chrome.extension.getBackgroundPage().updateAdsBlockStatus(!btnGoogleAds.checked);
});
// 点击开关时存储按钮状态并刷新页面