fix: demo

This commit is contained in:
David Ralph
2021-09-03 12:31:12 +01:00
parent 604834c4d7
commit b5c3ca201e

View File

@@ -32,6 +32,14 @@ export default class Modals extends PureComponent {
window.stats.postEvent('modal', 'Opened welcome');
}
if (window.location.search === '?nointro=true') {
if (localStorage.getItem('showWelcome') === 'true') {
localStorage.setItem('showWelcome', false);
EventBus.dispatch('refresh', 'widgets');
EventBus.dispatch('refresh', 'backgroundwelcome');
}
}
// hide refresh reminder once the user has refreshed the page
localStorage.setItem('showReminder', false);
}