Fix Safari/iOS issue
This commit is contained in:
parent
91c33d7105
commit
c3df6b5aeb
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ const ua = navigator.userAgent.toLowerCase();
|
||||||
const isMobile = /mobile|iphone|ipad|android/.test(ua);
|
const isMobile = /mobile|iphone|ipad|android/.test(ua);
|
||||||
|
|
||||||
// Get the <head> element
|
// Get the <head> element
|
||||||
const [head] = document.getElementsByTagName('head');
|
const head = document.getElementsByTagName('head')[0];
|
||||||
|
|
||||||
// If mobile, insert the viewport meta tag
|
// If mobile, insert the viewport meta tag
|
||||||
if (isMobile) {
|
if (isMobile) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue