🎨 继续优化下代码

This commit is contained in:
Tw93
2022-10-31 10:40:44 +08:00
parent 68cbf252e3
commit 9a94ce40ca

View File

@@ -92,8 +92,7 @@ window.addEventListener('DOMContentLoaded', (_event) => {
zoomIn(); zoomIn();
} }
if (event.key === "0" && event.metaKey){ if (event.key === "0" && event.metaKey){
document.getElementsByTagName('html')[0].style.zoom = '100%'; zoomCommon(() => '100%');
window.localStorage.setItem('htmlZoom', '100%');
} }
}) })