mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 10:57:04 +00:00
Remove temporary code and comments
This commit is contained in:
@@ -110,24 +110,11 @@
|
||||
|
||||
// Listen for deep link events
|
||||
App.addListener("appUrlOpen", (event: URLOpenListenerEvent) => {
|
||||
console.log(event)
|
||||
const url = new URL(event.url)
|
||||
const target = `${url.pathname}${url.search}${url.hash}`
|
||||
goto(target, {replaceState: false, noScroll: false})
|
||||
})
|
||||
|
||||
// TEMP: Since the capacitor event won't fire in web, dropping equivalent implementation here for testing navigation
|
||||
//
|
||||
// Event can be manually triggered in web console with: `window.dispatchEvent(new CustomEvent("appUrlOpen", { detail: { url: "foobar:///.well-known/apple-app-site-association" } }) );`
|
||||
window.addEventListener("appUrlOpen", (_event: Event) => {
|
||||
console.log(_event)
|
||||
const event = _event as CustomEvent<{url: string}>
|
||||
const url = new URL(event.detail.url)
|
||||
const target = `${url.pathname}${url.search}${url.hash}`
|
||||
console.log(target)
|
||||
goto(target, {replaceState: false, noScroll: false})
|
||||
})
|
||||
|
||||
// Nstart login
|
||||
if (window.location.hash?.startsWith("#nostr-login")) {
|
||||
const params = new URLSearchParams(window.location.hash.slice(1))
|
||||
|
||||
Reference in New Issue
Block a user