diff --git a/src/app/Coriolis.jsx b/src/app/Coriolis.jsx index 52f2cc08..b0d7cb1d 100644 --- a/src/app/Coriolis.jsx +++ b/src/app/Coriolis.jsx @@ -22,6 +22,7 @@ import ComparisonPage from './pages/ComparisonPage'; import ShipyardPage from './pages/ShipyardPage'; import ErrorDetails from './pages/ErrorDetails'; + const zlib = require('pako'); const request = require('superagent'); @@ -72,7 +73,7 @@ export default class Coriolis extends React.Component { route: {}, sizeRatio: Persist.getSizeRatio() }; - this._getAnnouncements(); + // this._getAnnouncements(); Router('', (r) => this._setPage(ShipyardPage, r)); Router('/import?', (r) => this._importBuild(r)); Router('/import/:data', (r) => this._importBuild(r)); @@ -394,7 +395,6 @@ export default class Coriolis extends React.Component { */ render() { let currentMenu = this.state.currentMenu; - console.log(this.state) return
+
{window.CORIOLIS_VERSION} - {window.CORIOLIS_DATE} diff --git a/src/app/Router.js b/src/app/Router.js index 143475a4..b9881f60 100644 --- a/src/app/Router.js +++ b/src/app/Router.js @@ -88,12 +88,6 @@ 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/app/pages/Page.jsx b/src/app/pages/Page.jsx index 76c86c5f..bcb4eaad 100644 --- a/src/app/pages/Page.jsx +++ b/src/app/pages/Page.jsx @@ -62,6 +62,14 @@ export default class Page extends React.Component { */ componentDidMount() { document.title = this.state.title || 'Coriolis'; + try { + (window.adsbygoogle = window.adsbygoogle || []).push({ + google_ad_client: "ca-pub-3709458261881414", + enable_page_level_ads: true + }); + } catch (error) { + + } } /** diff --git a/src/index.ejs b/src/index.ejs index b71c5905..def4272e 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -8,6 +8,9 @@ + + + @@ -25,7 +28,7 @@ - + -
+
+ +
diff --git a/src/migrate.html b/src/migrate.html index 7a847b74..0c867137 100644 --- a/src/migrate.html +++ b/src/migrate.html @@ -24,6 +24,12 @@ type="image/png" href="/192x192.png" /> + + +