Skip to content

Commit

Permalink
rm 2.0 advertisement
Browse files Browse the repository at this point in the history
  • Loading branch information
MusikAnimal committed Nov 11, 2016
1 parent 151b4a1 commit ee90f3b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 45 deletions.
17 changes: 0 additions & 17 deletions javascripts/pageviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,6 @@ class PageViews extends mix(Pv).with(ChartHelpers) {
this.popParams();
this.setupListeners();
this.updateInterAppLinks();

if (i18nLang === 'en' && !this.getFromLocalStorage('pageviews-hide-beta-notice')) {
this.addSiteNotice(
'info',
`
There's a new Pageviews tool in town!
Try <strong><a href='/pageviews-test?pages=Google'>Pageviews Analysis 2.0 BETA!</a></strong>
&nbsp;
<span class='small'>(<a href='#' class='hide-beta-notice' data-dismiss='alert'>permanently hide this notice</a>)</span>
`,
'',
true
);
$('.hide-beta-notice').on('click', () => {
this.setLocalStorage('pageviews-hide-beta-notice', true);
});
}
}

/**
Expand Down
Loading

0 comments on commit ee90f3b

Please sign in to comment.