Skip to content

Commit e7f286b

Browse files
authored
Merge pull request phaserjs#3563 from Chumper/patch-2
Added additional check for node
2 parents c8bbea5 + 6d0b7e9 commit e7f286b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/device/OS.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function init ()
134134
OS.cordova = true;
135135
}
136136

137-
if ((typeof process !== 'undefined') && (typeof process.versions.node !== 'undefined'))
137+
if (process && process.versions && process.versions.node)
138138
{
139139
OS.node = true;
140140
}

0 commit comments

Comments
 (0)