SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/uniquify/people/main.js

Summary

Maintainability
A
0 mins
Test Coverage
import { createApp } from 'vue'
import { newStore } from './store/store.js'
import App from './app.vue'

function init() {
  const app = createApp(App)
  app.use(newStore())
  app.mount('#uniquify_people')
}

document.addEventListener('turbolinks:load', () => {
  if (document.querySelector('#uniquify_people')) {
    init()
  }
})