mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
perf: prevent background from being mounted when not in use
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import backgroundPage from 'url:./background/background.html'
|
||||
import browser from 'webextension-polyfill';
|
||||
import { SettingsState } from '../../types/storage';
|
||||
|
||||
export async function appendBackgroundToUI() {
|
||||
console.log('Starting appendBackgroundToUI...');
|
||||
const settings = await browser.storage.local.get() as SettingsState;
|
||||
|
||||
console.log(settings.theme);
|
||||
|
||||
if (settings.theme == '') return;
|
||||
|
||||
const parent = document.getElementById('container');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user