From 9c541735b756be016c013c5b040ad7cce1a2de1a Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 8 Dec 2021 01:06:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20initial-scale=3D1=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/index.php | 2 +- hwe/ts/util/auto500px.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hwe/index.php b/hwe/index.php index 72172a5c..3022ec86 100644 --- a/hwe/index.php +++ b/hwe/index.php @@ -115,7 +115,7 @@ if (!$otherTextInfo) { <?= $serverName ?>: 메인 - + diff --git a/hwe/ts/util/auto500px.ts b/hwe/ts/util/auto500px.ts index 7441683a..c28930f7 100644 --- a/hwe/ts/util/auto500px.ts +++ b/hwe/ts/util/auto500px.ts @@ -16,7 +16,7 @@ export function auto500px(targetHeight = 700): void { const htmlTag = unwrap(document.querySelector("head")); _viewPortMeta = document.createElement("meta"); _viewPortMeta.name = 'viewport'; - _viewPortMeta.content = 'width=500, initial-scale=1'; + _viewPortMeta.content = 'width=500'; htmlTag.appendChild(_viewPortMeta); viewportMeta = _viewPortMeta; } @@ -30,22 +30,22 @@ export function auto500px(targetHeight = 700): void { const selectorHeight = targetHeight; if (deviceWidth < 500) { - viewportMeta.content = 'width=500, initial-scale=1'; + viewportMeta.content = 'width=500'; return; } if (innerHeight < selectorHeight) { const maybeNextWidth = deviceWidth / innerHeight * selectorHeight; if (maybeNextWidth >= 700) { - viewportMeta.content = 'width=1000, initial-scale=1'; + viewportMeta.content = 'width=1000'; } else { - viewportMeta.content = `height=${Math.ceil(selectorHeight)}, initial-scale=1`; + viewportMeta.content = `height=${Math.ceil(selectorHeight)}`; } return; } else if(deviceWidth >= 700){ - viewportMeta.content = 'width=1000, initial-scale=1'; + viewportMeta.content = 'width=1000'; } else{ viewportMeta.content = 'width=device-width, initial-scale=1';