Skip to content

Commit

Permalink
use serialize for options
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Oct 25, 2017
1 parent 8854d9a commit a81635c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templates/plugin.js
Expand Up @@ -2,6 +2,6 @@ import Vue from 'vue'
import VueAnalytics from 'vue-analytics'

export default async function ({ app: { router } }) {
const moduleOptions = <%= JSON.stringify(options) %>
const moduleOptions = <%= serialize(options) %>
Vue.use(VueAnalytics, Object.assign({ router }, moduleOptions))
}

0 comments on commit a81635c

Please sign in to comment.