1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 21:58:58 +09:00

Fix Safari/iOS issue

This commit is contained in:
syuilo 2017-05-25 16:03:03 +09:00
parent ea693f7b55
commit 73c29cbc52

View File

@ -32,7 +32,7 @@ const ua = navigator.userAgent.toLowerCase();
const isMobile = /mobile|iphone|ipad|android/.test(ua);
// Get the <head> element
const [head] = document.getElementsByTagName('head');
const head = document.getElementsByTagName('head')[0];
// If mobile, insert the viewport meta tag
if (isMobile) {