vue-abtasty
Version:
Vue ABTasty integration plugin
20 lines (13 loc) • 481 B
JavaScript
// https://git.seniormedia.fr/repatriation/repatriation-app/commit/178f94a82b08bcd95eb79abbe18ca530ee1ede8f
import { set, isAsync } from './config'
import { sync, async } from './codes'
const VueABTasty = {
install (Vue, options) {
// options : identifier!, async
set(options || {})
var head = document.head || document.getElementsByTagName('head')[0]
const script = isAsync() ? async() : sync()
head.appendChild(script)
}
}
export default VueABTasty