SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/collecting_events/stepwise/collectors/main.js

Summary

Maintainability
A
35 mins
Test Coverage
import { createApp } from 'vue'
import App from './app.vue'

function initApp(element) {
  const app = createApp(App)

  app.mount(element)
}

document.addEventListener('turbolinks:load', () => {
  const el = document.querySelector('#collectors_task')

  if (el) { initApp(el) }
})