From 0780990720f44cee7b69b2bea2f861739244f902 Mon Sep 17 00:00:00 2001 From: OneSignal Date: Thu, 31 Aug 2023 21:53:04 +0000 Subject: [PATCH] Update onesignal-vue --- index.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index c74f765..2993353 100644 --- a/index.ts +++ b/index.ts @@ -12,7 +12,7 @@ let isOneSignalScriptFailed = false; const VueApp: any = Vue; -if (window) { +if (typeof window !== 'undefined') { window.OneSignalDeferred = window.OneSignalDeferred || []; addSDKScript(); } diff --git a/package.json b/package.json index 99b1271..dfebe5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "onesignal-vue", - "version": "2.0.0", + "version": "2.0.1", "description": "Vue OneSignal Plugin: Make it easy to integrate OneSignal with your Vue App!", "author": "rgomezp", "contributors": [