Skip to content

Commit

Permalink
refact: improvement in project uuid definition logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuseduardomedeiros committed Dec 13, 2024
1 parent 3bfbd43 commit 3302c59
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ export default {
name: 'App',
setup() {
const projectUuid = window.location.href.split('projectUuid=')[1];
const queryString = window.location.href.split('?')[1];
const { projectUuid } = Object.fromEntries(
new URLSearchParams(queryString).entries(),
);
if (projectUuid) setProjectLocalStorage(projectUuid);
},
Expand Down

0 comments on commit 3302c59

Please sign in to comment.