This commit is contained in:
tamaina
2019-03-21 04:10:49 +09:00
committed by Satsuki Yanagi
parent 047a46d966
commit 82d2b0608f
3 changed files with 18 additions and 18 deletions

View File

@@ -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];