more convenient al handling

pull/1/head
Zakhar Timoshenko 3 years ago
parent db7620914a
commit 68d092e2b9

@ -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

Loading…
Cancel
Save