Skip to content

Commit

Permalink
added route debug
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyGermaneri committed Sep 24, 2023
1 parent ebd2efe commit a6014f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/workspace/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {useStore as usePreferencesStore} from "@plastic-io/graph-editor-vue3-pre

export default (router: Router) => {
router.beforeEach(async (to, from, next) => {
console.log('Route', to, from);
const scripts = (usePreferencesStore() as any).preferences.componentScripts.replace('\n', ',').split(',');
const promises = scripts.map((src) => {
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit a6014f6

Please sign in to comment.