Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 6c6adbf

Browse files
committed
navigator object may exist in browser like FF
1 parent 4bb3aeb commit 6c6adbf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/unit/navigation/navigation_helpers.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@
256256
expect( 1 );
257257

258258
$.mobile.phonegapNavigationEnabled = true;
259-
window.navigator = {
260-
app: {
261-
backHistory: function() {
262-
ok( true, "history back called" );
263-
}
259+
window.navigator = window.navigator || {};
260+
261+
window.navigator.app = {
262+
backHistory: function() {
263+
ok( true, "history back called" );
264264
}
265265
};
266266

0 commit comments

Comments
 (0)