diff --git a/src/content.ts b/src/content.ts index 049f90b8b..8c310b8ed 100644 --- a/src/content.ts +++ b/src/content.ts @@ -21,7 +21,7 @@ import {BTDMessageOriginsEnum, BTDMessages} from './types/btdMessageTypes'; if (hasNewTweetDeck) { console.debug('Better TweetDeck aborted loading on TweetDeck Preview'); - if (localStorage.getItem('ROLLBACK_TO_LEGACY') === 'true') { + if (localStorage.getItem('STOP_ROLLBACK_TO_LEGACY') === 'true') { return; } rollbackToLegacy(); diff --git a/src/services/rollbackToLegacy.tsx b/src/services/rollbackToLegacy.tsx index b216c2b91..3e9ebe0fc 100644 --- a/src/services/rollbackToLegacy.tsx +++ b/src/services/rollbackToLegacy.tsx @@ -8,7 +8,7 @@ import {getExtensionUrl, getExtensionVersion} from '../helpers/webExtensionHelpe export const ROLLBACK_TO_LEGACY = 'ROLLBACK_TO_LEGACY'; export function rollbackToLegacy() { - if (localStorage.getItem('ROLLBACK_TO_LEGACY') === 'true') { + if (localStorage.getItem('STOP_ROLLBACK_TO_LEGACY') === 'true') { return; } if (document.getElementById('btd-rollback-dialog-root')) { @@ -62,7 +62,7 @@ const RollbackDialog = (props: {onCancel: () => void}) => {
{ - localStorage.setItem('ROLLBACK_TO_LEGACY', String(true)); + localStorage.setItem('STOP_ROLLBACK_TO_LEGACY', String(true)); props.onCancel(); }} variant="secondary"> @@ -77,7 +77,6 @@ const RollbackDialog = (props: {onCancel: () => void}) => { { - localStorage.setItem('ROLLBACK_TO_LEGACY', String(true)); document.cookie = 'tweetdeck_version=legacy'; window.location.reload(); }}