Skip to content

Commit

Permalink
reactive hasURLHash check
Browse files Browse the repository at this point in the history
  • Loading branch information
leoquack committed Jun 11, 2023
1 parent cba884d commit 890e91a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/BaseSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,16 @@ export default {
'#8B5CF6',
'#EC4899',
],
hasURLHash: window.location.hash.length > 2,
shadeHasUnsavedChanges: false,
baseShadeStop: 5,
version: 1,
oldVersionMessages: [],
}
},
computed: {
hasURLHash() {
return window.location.hash.length > 2
},
oldVersionDisplayMessage() {
const maxLen = 10
let msg = this.oldVersionMessages.slice(0, maxLen)
Expand Down

1 comment on commit 890e91a

@vercel
Copy link

@vercel vercel bot commented on 890e91a Jun 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.