mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
14 lines
488 B
TypeScript
14 lines
488 B
TypeScript
import browser from 'webextension-polyfill';
|
|
|
|
export async function appendBackgroundToUI() {
|
|
const parent = document.getElementById('container');
|
|
|
|
// embed background.html
|
|
const background = document.createElement('iframe');
|
|
background.id = 'background';
|
|
background.classList.add('imageBackground');
|
|
background.setAttribute('excludeDarkCheck', 'true');
|
|
background.src = browser.runtime.getURL('src/seqta/ui/background/background.html');
|
|
parent!.appendChild(background);
|
|
}
|