From 33d9eb4c6de96cba63ace990a89701946b04479f Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 16 Dec 2021 02:32:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20500px/1000px=20=EB=AA=A8=EB=93=9C=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/util/auto500px.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hwe/ts/util/auto500px.ts b/hwe/ts/util/auto500px.ts index 897439fa..63588725 100644 --- a/hwe/ts/util/auto500px.ts +++ b/hwe/ts/util/auto500px.ts @@ -27,6 +27,8 @@ export function auto500px(targetHeight = 700): void { const screenMode = (localStorage.getItem(keyScreenMode) as ScreenModeType)??'auto'; if(screenMode != oldMode){ oldMode = screenMode; + deviceWidth = window.screen.availWidth; + if(screenMode == '500px'){ viewportMeta.content = 'width=500'; return;