Skip to content

Commit aa28eba

Browse files
committed
return early if there is no navigator
1 parent 436fca4 commit aa28eba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plots/gl3d/scene.js

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ var isMobile = require('is-mobile');
3434
var tablet = isTablet();
3535

3636
function isTablet() {
37+
if(!navigator) return false;
38+
3739
var ua;
3840
// same interface as applied by is-mobile module
3941
if(!ua && typeof navigator !== 'undefined') ua = navigator.userAgent;

0 commit comments

Comments
 (0)