chore: another al test

pull/1/head
Zakhar Timoshenko 3 years ago
parent 2d12aac298
commit a74059e6d0

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

@ -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()}`
}
}
})
},

Loading…
Cancel
Save