From 4153839ab612da8e274ee37f4d3768a026830115 Mon Sep 17 00:00:00 2001 From: Stanley Shyiko Date: Mon, 9 Jan 2017 22:59:51 -0800 Subject: [PATCH] Fix undefined defaultOptions --- src/shared/plugin.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/shared/plugin.js b/src/shared/plugin.js index 9ccd32e..0b57b57 100644 --- a/src/shared/plugin.js +++ b/src/shared/plugin.js @@ -9,11 +9,6 @@ import { VUE_META_TAG_LIST_ID_KEY_NAME } from './constants' -// automatic install -if (typeof Vue !== 'undefined') { - Vue.use(VueMeta) -} - // set some default options const defaultOptions = { keyName: VUE_META_KEY_NAME, @@ -22,6 +17,11 @@ const defaultOptions = { tagIDKeyName: VUE_META_TAG_LIST_ID_KEY_NAME } +// automatic install +if (typeof Vue !== 'undefined') { + Vue.use(VueMeta) +} + /** * Plugin install function. * @param {Function} Vue - the Vue constructor.