summaryrefslogtreecommitdiff
path: root/electron/src/renderer/router/index.js
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-05-01 19:34:25 +0200
committerGitHub <noreply@github.com>2024-05-01 19:34:25 +0200
commit2ee4175437bbfcddf98e5eacba9b019113716ac8 (patch)
treeaff6c7c9adfc27f0f33ab4e14edcf17829dbb282 /electron/src/renderer/router/index.js
parenteb64c88a8bf9c8fe66c33a5309d28e526b994d25 (diff)
Remove electron entirely (#2859)
Co-authored-by: rejbasket
Diffstat (limited to 'electron/src/renderer/router/index.js')
-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