mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix: activate old background while on page
This commit is contained in:
@@ -2,6 +2,7 @@ import browser from 'webextension-polyfill';
|
||||
import base64ToBlob from './base64ToBlob';
|
||||
import { openDatabase, writeData } from '@/interface/hooks/BackgroundDataLoader';
|
||||
import { backgroundUpdates } from '@/interface/hooks/BackgroundUpdates';
|
||||
import { loadBackground } from '@/seqta/ui/ImageBackgrounds';
|
||||
|
||||
const MIGRATION_STATE_KEY = 'background_migration_state';
|
||||
|
||||
@@ -54,6 +55,7 @@ export const migrateBackgrounds = async (): Promise<void> => {
|
||||
|
||||
if (isSelected) {
|
||||
localStorage.setItem('selectedBackground', id);
|
||||
await loadBackground();
|
||||
}
|
||||
|
||||
migrationState.lastProcessedId = id;
|
||||
|
||||
Reference in New Issue
Block a user