document.body.style.setProperty("--custom-control-background-opacity", settings.customControlBackgroundOpacity); addSettingsListener("customControlBackgroundOpacity", value => { document.body.style.setProperty("--custom-control-background-opacity", value); }); const load = () => { resources.applyStyle("customControlBackgroundStyle"); if (!settings.touchVideoPlayer) { resources.applyImportantStyleFromText(/*html*/` `); } }; load(); export default { reload: load, unload: () => { resources.removeStyle("customControlBackgroundStyle"); const nonTouchStyle = document.getElementById("control-background-non-touch"); nonTouchStyle && nonTouchStyle.remove(); }, };