Files
BetterSEQTA-Plus/src/seqta/ui/ImageBackgrounds.ts
T

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);
}