You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
398 B
16 lines
398 B
import { initializeApp } from "./main.common";
|
|
import { App } from "@capacitor/app";
|
|
import router from "./router";
|
|
|
|
const app = initializeApp();
|
|
|
|
// Handle deep links
|
|
App.addListener("appUrlOpen", (data: { url: string }) => {
|
|
console.log("Deep link opened:", data.url);
|
|
const slug = data.url.replace("timesafari://", "");
|
|
if (slug) {
|
|
router.push("/" + slug);
|
|
}
|
|
});
|
|
|
|
app.mount("#app");
|
|
|