v0.6.3
fix: $Drawer activate and inactivate method not used.
This commit is contained in:
parent
a94bcd6f81
commit
6b2fdf543c
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -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>
|
||||||
|
@ -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",
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user