From 9a94ce40ca8145c9995ee93e54b02bb35db833c9 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 31 Oct 2022 10:40:44 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E7=BB=A7=E7=BB=AD=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=B8=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/pake.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src-tauri/src/pake.js b/src-tauri/src/pake.js index b0834ff..017017f 100644 --- a/src-tauri/src/pake.js +++ b/src-tauri/src/pake.js @@ -92,8 +92,7 @@ window.addEventListener('DOMContentLoaded', (_event) => { zoomIn(); } if (event.key === "0" && event.metaKey){ - document.getElementsByTagName('html')[0].style.zoom = '100%'; - window.localStorage.setItem('htmlZoom', '100%'); + zoomCommon(() => '100%'); } })