chore: another al test
This commit is contained in:
@@ -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:url", content: "kotatsu://manga" }])
|
||||||
head.push(["meta", { property: "al:android:app_name", content: "Kotatsu" }])
|
head.push(["meta", { property: "al:android:app_name", content: "Kotatsu" }])
|
||||||
head.push(["meta", { property: "al:android:package", content: "org.koitharu.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
|
return head
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ 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?${window.location.toString().split("manga/?").pop()}`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user