more convenient al handling

This commit is contained in:
2023-10-25 20:30:20 +03:00
parent db7620914a
commit 68d092e2b9
2 changed files with 5 additions and 3 deletions

View File

@@ -18,9 +18,6 @@ export default {
watchEffect(() => {
if (inBrowser) {
document.cookie = `nf_lang=${lang.value}; expires=Mon, 1 Jan 2024 00:00:00 UTC; path=/`
if (document.location = "https://kotatsu.app/manga/") {
document.location = `kotatsu://manga/manga?${window.location.toString().split("manga/?").pop()}`
}
}
})
},

View File

@@ -13,7 +13,12 @@ footer: false
---
<script setup>
import { onMounted } from "vue"
import DownloadButtons from "@theme/components/DownloadButtons.vue";
onMounted(() => {
window.location = `kotatsu://manga${window.location.toString().split("manga/").pop()}`
})
</script>
# Hello here