bootstrap: add CSS injection support (like JS)

This commit is contained in:
Ducko 2022-09-28 15:50:06 +01:00
parent 045f9db914
commit f425859c93

1
src/bootstrap.js vendored
View file

@ -45,6 +45,7 @@ const startCore = () => {
.replaceAll('<notrack>', oaConfig.noTrack)); .replaceAll('<notrack>', oaConfig.noTrack));
if (oaConfig.js) bw.webContents.executeJavaScript(oaConfig.js); if (oaConfig.js) bw.webContents.executeJavaScript(oaConfig.js);
if (oaConfig.css) bw.webContents.insertCSS(oaConfig.css);
}); });
}); });