parent
047a46d966
commit
82d2b0608f
3 changed files with 18 additions and 18 deletions
|
|
@ -84,7 +84,7 @@
|
|||
|
||||
// Detect the user agent
|
||||
const ua = navigator.userAgent.toLowerCase();
|
||||
const isMobile = /mobile|iphone|ipad|android/.test(ua);
|
||||
const isMobile = /mobile|iphone|ipad|android/.test(ua) || window.innerWidth < 576;
|
||||
|
||||
// Get the <head> element
|
||||
const head = document.getElementsByTagName('head')[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue