chore: another al test

This commit is contained in:
2023-10-25 19:00:04 +03:00
parent 2d12aac298
commit a74059e6d0
2 changed files with 4 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ function generateMeta(context: TransformContext, hostname: string) {
head.push(["meta", { property: "al:android:url", content: "kotatsu://manga" }])
head.push(["meta", { property: "al:android:app_name", content: "Kotatsu" }])
head.push(["meta", { property: "al:android:package", content: "org.koitharu.kotatsu" }])
head.push(["script", {}, `window.location = "kotatsu://manga"`])
/// head.push(["script", {}, `window.location = "kotatsu://manga?${window.location.toString().split("manga/?").pop()}"`])
}
return head

View File

@@ -18,6 +18,9 @@ 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?${window.location.toString().split("manga/?").pop()}`
}
}
})
},