Skip to content

Commit

Permalink
fix: 🐛 fixed localStorage version not updating when component updates…
Browse files Browse the repository at this point in the history
… automatically
  • Loading branch information
davids-ensemble committed May 28, 2024
1 parent 2b79d52 commit a00130e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ export class TJUpdateBanner {
isButtonDisabled = !this.scriptVersion || new Date(this.scriptVersion) < new Date('2024-05-18');

async componentWillLoad() {
if (!localStorage.getItem('tj_version')) {
localStorage.setItem('tj_version', version);
}
localStorage.setItem('tj_version', version);
const response = await fetch(
`https://cdn.jsdelivr.net/npm/@ens-davids/tj-jira-panel/package.json?bypassDiskCache=${Date.now()}`,
);
Expand Down

0 comments on commit a00130e

Please sign in to comment.