Skip to content

Commit

Permalink
Remove shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
RehanSaeed committed Mar 25, 2022
1 parent 24ed9da commit 6e5653c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/DotnetNewUI/Frontend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { createApp } from "vue";
import { createMetaManager } from "vue-meta";
import App from "./App.vue";
import router from "./router";
import { getOriginUrl } from "@/composables/Templates";
// import { getOriginUrl } from "@/composables/Templates";

window.onbeforeunload = function () {
const origin = getOriginUrl();
fetch(`${origin}/Shutdown`, { method: "POST", keepalive: true });
};
// window.onbeforeunload = function () {
// const origin = getOriginUrl();
// fetch(`${origin}/Shutdown`, { method: "POST", keepalive: true });
// };

createApp(App).use(createMetaManager()).use(router).mount("#app");

0 comments on commit 6e5653c

Please sign in to comment.