Skip to content

Commit

Permalink
better way to migrate disable restore point addon
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Aug 11, 2023
1 parent b0fc678 commit abfbb34
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/tw-restore-point-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,16 @@ const readInterval = () => {
return number;
}
}

// TODO: this is temporary, remove it after enough has passed for people that care to have migrated
const addonSettings = localStorage.getItem('tw:addons');
if (addonSettings) {
const parsedAddonSettings = JSON.parse(addonSettings);
const addonObject = parsedAddonSettings['tw-disable-restore-points'];
if (addonObject && addonObject.enabled) {
return -1;
}
}
} catch (e) {
// ignore
}
Expand Down

0 comments on commit abfbb34

Please sign in to comment.