From cf13682e5b97a6d67a39c0acd556d792aa4910fa Mon Sep 17 00:00:00 2001 From: Denis Karabaza Date: Wed, 6 Dec 2017 01:15:45 +0300 Subject: [PATCH 1/2] Improve automatic installation criteria --- src/shared/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/plugin.js b/src/shared/plugin.js index 4f321cb..d10cb3b 100644 --- a/src/shared/plugin.js +++ b/src/shared/plugin.js @@ -10,7 +10,7 @@ import { } from './constants' // automatic install -if (typeof Vue !== 'undefined') { +if (typeof window !== 'undefined' && typeof window.Vue != 'undefined') { Vue.use(VueMeta) } From 148f803541783e0b5ef9e855cbab3af27d580220 Mon Sep 17 00:00:00 2001 From: Denis Karabaza Date: Wed, 6 Dec 2017 01:56:49 +0300 Subject: [PATCH 2/2] Fix tests --- src/shared/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/plugin.js b/src/shared/plugin.js index d10cb3b..eebae9c 100644 --- a/src/shared/plugin.js +++ b/src/shared/plugin.js @@ -10,7 +10,7 @@ import { } from './constants' // automatic install -if (typeof window !== 'undefined' && typeof window.Vue != 'undefined') { +if (typeof window !== 'undefined' && typeof window.Vue !== 'undefined') { Vue.use(VueMeta) }