P5-2413 - Remove $(window).width() calls

This commit is contained in:
Anders Gustafsson
2020-11-30 14:52:18 +01:00
committed by GitHub
parent f9fbc8d34f
commit 8c97a33735
3 changed files with 5 additions and 7 deletions
+1 -2
View File
@@ -2373,10 +2373,9 @@ module.exports = isFullscreen;
},{}],31:[function(require,module,exports){
'use strict';
/* globals $ */
function isMobile() {
return $(window).width() < 768;
return window.innerWidth < 768;
}
module.exports = isMobile;