Skip to content

Commit 7e2b909

Browse files
committed
Fixed #409 - null device platform (cordova)
1 parent 72c97e8 commit 7e2b909

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/js/ionic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ window.ionic = {
18021802

18031803
// Check if the platform is the one detected by cordova
18041804
is: function(type) {
1805-
if(window.device) {
1805+
if(window.device && window.device.platform) {
18061806
return window.device.platform === type || window.device.platform.toLowerCase() === type;
18071807
}
18081808

0 commit comments

Comments
 (0)