We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcd5ed4 + 0780990 commit fae43e1Copy full SHA for fae43e1
index.ts
@@ -12,7 +12,7 @@ let isOneSignalScriptFailed = false;
12
13
const VueApp: any = Vue;
14
15
-if (window) {
+if (typeof window !== 'undefined') {
16
window.OneSignalDeferred = window.OneSignalDeferred || [];
17
addSDKScript();
18
}
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "onesignal-vue",
3
- "version": "2.0.0",
+ "version": "2.0.1",
4
"description": "Vue OneSignal Plugin: Make it easy to integrate OneSignal with your Vue App!",
5
"author": "rgomezp",
6
"contributors": [
0 commit comments