/* eslint-disable */
window.onerror = function (message, url, lineNo, colNo, error) {
  console.log(arguments)
  let container = document.createElement('div')
  container.style.color = 'red'
  container.style.position = 'fixed'
  container.style.background = '#eee'
  container.style.padding = '2em'
  container.style.top = '1em'
  container.style.left = '1em'
  let msg = document.createElement('pre')
  msg.innerText = [
    'Message: ' + message,
    'URL: ' + url,
    'Line: ' + lineNo,
    'Column: ' + colNo,
    'Stack: ' + (error && error.stack)
  ].join('\n')
  container.appendChild(msg)
  document.body.appendChild(container)
}

import Vue from 'vue'
import Raven from 'raven-js'
import RavenVue from 'raven-js/plugins/vue'
import I18n from 'vue-i18n'
import Cookie from 'vue-cookie'
import Analytics from 'vue-analytics'
import Paginate from 'vue-paginate'
import InfiniteScroll from 'vue-infinite-scroll'
import { sync } from 'vuex-router-sync'
import { version } from '../package'
import App from './App'
import router from './router'
import store from './store'
import en from 'locales/en'
import ja from 'locales/ja'
import nl from 'locales/nl'

const locales = {
  en: en,
  ja: ja,
  nl: nl
}

if (process.env.NODE_ENV === 'production') {
  // Raven error tracking
  Raven.config('https://d4a1fd4efa3442e598a874b92c24e11a@sentry.io/164720', {
    release: version
  }).addPlugin(RavenVue, Vue).install()

  // Enable Progressive Web App
  require('./pwa')
  // Enable Google Analytics
  const id = 'UA-46184267-8'
  Vue.use(Analytics, {id, router})
}

sync(store, router)
Vue.use(Cookie)
Vue.use(I18n)
Vue.use(Paginate)
Vue.use(InfiniteScroll)

// Scroll to top of page on route change
router.beforeEach((to, from, next) => {
  window.scrollTo(0, 0)
  next()
})

// Check if language cookie has been set
// If so, use it
// Else use English
Vue.config.lang = Vue.cookie.get('lang') ? Vue.cookie.get('lang') : 'en'

// Set fallback used for untranslated strings
Vue.config.fallbackLang = 'en'

Object.keys(locales).forEach(lang => {
  Vue.locale(lang, locales[lang])
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})

@@ -1,645 +1,4 @@
-/* eslint-disable */%0Awindow.onerror = function (message, url, lineNo, colNo, error) %7B%0A  console.log(arguments)%0A  let container = document.createElement('div')%0A  container.style.color = 'red'%0A  container.style.position = 'fixed'%0A  container.style.background = '#eee'%0A  container.style.padding = '2em'%0A  container.style.top = '1em'%0A  container.style.left = '1em'%0A  let msg = document.createElement('pre')%0A  msg.innerText = %5B%0A    'Message: ' + message,%0A    'URL: ' + url,%0A    'Line: ' + lineNo,%0A    'Column: ' + colNo,%0A    'Stack: ' + (error && error.stack)%0A  %5D.join('%5Cn')%0A  container.appendChild(msg)%0A  document.body.appendChild(container)%0A%7D%0A%0A
 impo

Update main.js