fix: $Drawer activate and inactivate method not used.
This commit is contained in:
defaultkavy 2024-10-13 08:44:38 +08:00
parent a94bcd6f81
commit 6b2fdf543c
Signed by: defaultkavy
GPG Key ID: DFBB22C4E69D7826
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -16,7 +16,7 @@
gtag('config', 'G-59HBGP98WR');
</script>
<script type="module" crossorigin src="/assets/index-BjMPWQj7.js"></script>
<script type="module" crossorigin src="/assets/index-Ai_LXv7l.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CPDn8S3u.css">
</head>
<body>

View File

@ -2,7 +2,7 @@
"name": "danbooru-viewer",
"module": "index.ts",
"type": "module",
"version": "0.6.2",
"version": "0.6.3",
"devDependencies": {
"@types/bun": "latest",
"vite": "^5.4.8",

View File

@ -88,7 +88,7 @@ export class $Drawer extends $Container {
}
checkURL(beforeURL: URL | undefined, afterURL: URL) {
if (beforeURL?.hash === '#drawer') this.close();
if (afterURL.hash === '#drawer') this.open();
if (beforeURL?.hash === '#drawer') this.inactivate();
if (afterURL.hash === '#drawer') this.activate();
}
}