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'); gtag('config', 'G-59HBGP98WR');
</script> </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"> <link rel="stylesheet" crossorigin href="/assets/index-CPDn8S3u.css">
</head> </head>
<body> <body>

View File

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

View File

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