mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-25 07:17:23 +08:00
only showing notification when changing setting manually
This commit is contained in:
parent
603dde93f8
commit
c1f32bf5a6
1 changed files with 4 additions and 2 deletions
|
|
@ -559,8 +559,10 @@ export function setEnableAds(
|
|||
}
|
||||
|
||||
config.enableAds = "off";
|
||||
saveToLocalStorage("enableAds", nosave);
|
||||
Notifications.add("Ads have been temporarily disabled", 0);
|
||||
if (!nosave) {
|
||||
saveToLocalStorage("enableAds", nosave);
|
||||
Notifications.add("Ads have been temporarily disabled", 0);
|
||||
}
|
||||
return true;
|
||||
|
||||
// config.enableAds = val;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue