This commit is contained in:
Taric Xin
2022-03-07 17:30:21 +08:00
parent ef1f8e98e7
commit 7cfa2cc415
4 changed files with 7 additions and 8 deletions

View File

@ -51,7 +51,7 @@ export class AppComponent implements OnInit {
});
const screen: any = window.screen
var zoom = window.devicePixelRatio || screen.deviceXDPI / screen?.logicalXDPI;
console.log(zoom)
// console.log(zoom)
if (document.body.clientWidth >= 1280) {
if (zoom != 1 && zoom != 2 && zoom != 3) {
this.themeService.toggleTheme().then();