Commit a7f38d3a authored by Edgar Z. Alvarenga's avatar Edgar Z. Alvarenga

Changes way to import Cordova

parent fb0b6ef9
......@@ -20,6 +20,7 @@
<!-- Add to home screen for Windows -->
<meta name="msapplication-TileImage" content="<%= htmlWebpackPlugin.files.publicPath %>static/img/icons/msapplication-icon-144x144.png">
<meta name="msapplication-TileColor" content="#000000">
<script type="text/javascript" src="cordova.js"></script>
<% for (var chunk of webpack.chunks) {
for (var file of chunk.files) {
if (file.match(/\.(js|css)$/)) { %>
......
......@@ -124,7 +124,8 @@
"webpack-cli": "2.1.4",
"webpack-dev-middleware": "3.1.3",
"webpack-hot-middleware": "2.22.2",
"webpack-merge": "4.1.2"
"webpack-merge": "4.1.2",
"cordova-plugin-splashscreen": "^5.0.2"
},
"engines": {
"node": ">= 4.0.0",
......@@ -139,7 +140,8 @@
"plugins": {
"cordova-plugin-device": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-file": {}
"cordova-plugin-file": {},
"cordova-plugin-splashscreen": {}
},
"platforms": [
"android",
......
......@@ -8,7 +8,6 @@ import VueAuth from '@websanova/vue-auth'
import VeeValidate from 'vee-validate'
import 'vuetify/dist/vuetify.css'
import VueQuillEditor from 'vue-quill-editor'
import VueCordova from 'vue-cordova'
import VueHead from 'vue-head'
import en from './locale/en'
import de from './locale/de'
......@@ -44,17 +43,7 @@ Vue.use(Vuetify, {
})
Vue.use(VueAxios, api.service)
Vue.config.productionTip = false
Vue.use(VueCordova)
Vue.use(VueHead)
// add cordova.js only if serving the app through file://
if (window.location.protocol === 'file:' || window.location.port === '3000') {
var cordovaScript = document.createElement('script')
cordovaScript.setAttribute('type', 'text/javascript')
cordovaScript.setAttribute('src', 'cordova.js')
document.body.appendChild(cordovaScript)
}
Vue.router = router
Vue.use(VueAuth, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment