P5-2413 - Remove $(window).width() calls
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
'use strict';
|
||||
/* globals $ */
|
||||
|
||||
function isMobile() {
|
||||
return $(window).width() < 768;
|
||||
return window.innerWidth < 768;
|
||||
}
|
||||
|
||||
module.exports = isMobile;
|
||||
|
||||
Reference in New Issue
Block a user