Skip to content

Commit

Permalink
feat: remove previously dismissed migration on settings click
Browse files Browse the repository at this point in the history
  • Loading branch information
mchappell committed Oct 30, 2024
1 parent 026bc6f commit 118867b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ export const dismissMigration = ({
});
};

export const disableMigration = () =>
storage.local.set({
export const disableMigration = async () => {
const date = new Date();
const timeInPast = date.setTime(date.getTime() - 1000);
await storage.local.set({
[DISMISS_MIGRATION_UNTIL]: timeInPast,
[MIGRATION_KEY]: MigrationState.None,
});
};

export const handleLaceMigrationRequests = () =>
runtime.onMessageExternal.addListener(
Expand Down

0 comments on commit 118867b

Please sign in to comment.