Skip to content

Commit

Permalink
remove VueApp from router
Browse files Browse the repository at this point in the history
Nothing actually depends on the vue app being monkey patched onto
the router, so let's get rid of it.
  • Loading branch information
brunnre8 committed Nov 22, 2022
1 parent f8eb0eb commit dfb4217
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions client/js/types.d.ts
Expand Up @@ -67,14 +67,6 @@ type ClientLinkPreview = LinkPreview & {
sourceLoaded?: boolean;
};

declare module "vue-router" {
import Vue from "./vue";

interface Router {
app: Vue.VueApp;
}
}

interface BeforeInstallPromptEvent extends Event {
/**
* Returns an array of DOMString items containing the platforms on which the event was dispatched.
Expand Down
3 changes: 1 addition & 2 deletions client/js/vue.ts
Expand Up @@ -5,7 +5,7 @@ import {createApp} from "vue";
import {store, CallableGetters, key} from "./store";
import App from "../components/App.vue";
import storage from "./localStorage";
import {router, navigate} from "./router";
import {router} from "./router";
import socket from "./socket";
import eventbus from "./eventbus";

Expand All @@ -20,7 +20,6 @@ const faviconAlerted = favicon?.dataset.other || "";

export const VueApp = createApp(App);

router.app = VueApp;
VueApp.use(router);
VueApp.use(store, key);

Expand Down

0 comments on commit dfb4217

Please sign in to comment.