more convenient al handling
This commit is contained in:
@@ -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()}`
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user