mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
only showing notification when changing setting manually
This commit is contained in:
parent
603dde93f8
commit
c1f32bf5a6
|
@ -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…
Reference in a new issue