summaryrefslogtreecommitdiff
path: root/electron/src/renderer/router
diff options
context:
space:
mode:
Diffstat (limited to 'electron/src/renderer/router')
-rw-r--r--electron/src/renderer/router/index.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/electron/src/renderer/router/index.js b/electron/src/renderer/router/index.js
deleted file mode 100644
index a38404da..00000000
--- a/electron/src/renderer/router/index.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Authors: see git history
- *
- * Copyright (c) 2010 Authors
- * Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
- *
- */
-import { createWebHashHistory, createRouter } from 'vue-router'
-const routes = [
- {
- path: '/simulator',
- name: 'simulator',
- component: () => import('../components/Simulator.vue')
- },
- {
- path: '/:pathMatch(.*)*',
- name: 'NotFound',
- component: () => import('../components/NotFound.vue')
- },
-]
-const router = createRouter({
- history: createWebHashHistory(),
- routes
-})
-// Sets title for each routes
-const DEFAULT_TITLE = 'Ink/Stitch';
-
-router.beforeEach((to) => {
- document.title = to.meta.title || DEFAULT_TITLE
-})
-export default router