more convenient al handling
This commit is contained in:
@@ -18,9 +18,6 @@ export default {
|
|||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
if (inBrowser) {
|
if (inBrowser) {
|
||||||
document.cookie = `nf_lang=${lang.value}; expires=Mon, 1 Jan 2024 00:00:00 UTC; path=/`
|
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>
|
<script setup>
|
||||||
|
import { onMounted } from "vue"
|
||||||
import DownloadButtons from "@theme/components/DownloadButtons.vue";
|
import DownloadButtons from "@theme/components/DownloadButtons.vue";
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
window.location = `kotatsu://manga${window.location.toString().split("manga/").pop()}`
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
# Hello here
|
# Hello here
|
||||||
|
|||||||
Reference in New Issue
Block a user