fix: 500px/1000px 모드 설정

This commit is contained in:
2021-12-16 02:32:33 +09:00
parent 347c0a1275
commit 33d9eb4c6d
+2
View File
@@ -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;