mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
add theme creator iframe
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import browser from "webextension-polyfill";
|
||||
import popup from '../../interface/index.html?url'
|
||||
|
||||
/**
|
||||
* Open the Theme Creator sidebar, it is an embedded page loaded similar to the extension popup
|
||||
*/
|
||||
export function OpenThemeCreator() {
|
||||
const container = document.querySelector('#container')
|
||||
const themeCreatorIframe: HTMLIFrameElement = document.createElement('iframe')
|
||||
themeCreatorIframe.src = `${browser.runtime.getURL(popup)}#themeCreator`
|
||||
themeCreatorIframe.id = 'themeCreatorIframe'
|
||||
themeCreatorIframe.setAttribute('allowTransparency', 'true')
|
||||
themeCreatorIframe.setAttribute('excludeDarkCheck', 'true')
|
||||
themeCreatorIframe.style.border = 'none'
|
||||
container!.appendChild(themeCreatorIframe)
|
||||
}
|
||||
Reference in New Issue
Block a user