Skip to content

Commit b88da80

Browse files
authored
Merge pull request #485 from sequoiaat/issue-480-window.clientInformation-undefined
Handling Typeerror window.clientInformation: undefined
2 parents ca43d6e + 55c09b6 commit b88da80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var exec = require("cordova/exec");
2-
var deviceVendor = window.clientInformation && window.clientInformation.vendor;
2+
var deviceVendor = (typeof window.clientInformation != 'undefined' && typeof window.clientInformation.vendor != 'undefined') ? window.clientInformation.vendor : "unknownVendor";
3+
34
// SDK Class
45
var API_CLASS = "BranchSDK";
56

0 commit comments

Comments
 (0)