diff --git a/src/app/Router.js b/src/app/Router.js index 1bac3386..143475a4 100644 --- a/src/app/Router.js +++ b/src/app/Router.js @@ -72,6 +72,7 @@ Router.go = function(path, state) { gaTrack(path); let ctx = new Context(path, state); Router.dispatch(ctx); + if (!ctx.unhandled) { if (isStandAlone()) { Persist.setState(ctx); @@ -87,6 +88,12 @@ Router.go = function(path, state) { location.reload(); } } + try { + (window.adsbygoogle = window.adsbygoogle || []).push({ + google_ad_client: "ca-pub-3709458261881414", + enable_page_level_ads: true + }); + } catch (error) {} return ctx; }; diff --git a/src/index.ejs b/src/index.ejs index 65d034d3..b71c5905 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -3,7 +3,6 @@