File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
1515 canSetConfigWithCurrentFunboxes ,
1616 canSetFunboxWithConfig ,
1717} from "./test/funbox/funbox-validation" ;
18- import { reloadAfter } from "./utils/misc" ;
18+ import { isDevEnvironment , reloadAfter } from "./utils/misc" ;
1919import * as ConfigTypes from "@monkeytype/shared-types/config" ;
2020
2121export let localStorageConfig : ConfigTypes . Config ;
@@ -661,9 +661,14 @@ export function setAds(val: ConfigTypes.Ads, nosave?: boolean): boolean {
661661 return false ;
662662 }
663663
664+ if ( isDevEnvironment ( ) ) {
665+ val = "off" ;
666+ console . debug ( "Ads are disabled in dev environment" ) ;
667+ }
668+
664669 config . ads = val ;
665670 saveToLocalStorage ( "ads" , nosave ) ;
666- if ( ! nosave ) {
671+ if ( ! nosave && ! isDevEnvironment ( ) ) {
667672 reloadAfter ( 3 ) ;
668673 Notifications . add ( "Ad settings changed. Refreshing..." , 0 ) ;
669674 }
You can’t perform that action at this time.
0 commit comments