Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: delete migration function from v1 to v2 #120

Closed
Robot-Inventor opened this issue Sep 12, 2023 · 0 comments · Fixed by #329
Closed

fix: delete migration function from v1 to v2 #120

Robot-Inventor opened this issue Sep 12, 2023 · 0 comments · Fixed by #329
Assignees
Labels
feat New feature or request
Milestone

Comments

@Robot-Inventor
Copy link
Owner

Robot-Inventor commented Sep 12, 2023

const migrateFromV1ToV2 = async () => {
const v1Settings = await browser.storage.local.get(null);
if (!("showMessageInAllTweets" in v1Settings)) return;
await browser.storage.local.set({ showMessagesInUnproblematicTweets: v1Settings.showMessageInAllTweets });
await browser.storage.local.remove("showMessageInAllTweets");
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant