text: import Vue from 'vue';
  import 'babel-polyfill';
  import 'indexeddbshim/dist/indexeddbshim';
  import './extensions';
  import './services/optional';
  import './icons';
  import App from './components/App';
  import store from './store';
  import localDbSvc from './services/localDbSvc';
  
  if (!indexedDB) {
    throw new Error('Your browser is not supported. Please upgrade to the latest version.');
  }
  
  
  if (!localStorage.installPrompted) {
    window.addEventListener('beforeinstallprompt', async (promptEvent) => {
      // Prevent Chrome 67 and earlier from automatically showing the prompt
      promptEvent.preventDefault();
  
      try {
        await store.dispatch('notification/confirm', 'Add StackEdit to your home screen?');
        promptEvent.prompt();
        await promptEvent.userChoice;
      } catch (err) {
        // Cancel
      }
      localStorage.installPrompted = true;
    });
  }
  
  Vue.config.productionTip = false;
  
  /* eslint-disable no-new */
  new Vue({
    el: '#app',
    store,
    render: h => h(App),
  });
  