Revert "Remove preload.js in plugin uses and use front plugin injection"

This reverts commit 4cb658daca.
This commit is contained in:
TC
2021-05-04 22:31:49 +02:00
parent bf409967b2
commit d4811b7901
4 changed files with 35 additions and 27 deletions

View File

@ -13,6 +13,7 @@ module.exports = (win) => {
// did-finish-load is called after all elements finished loading, including said listeners
// Thats the reason the timing is controlled from main
win.webContents.once("did-finish-load", () => {
win.webContents.send("restoreAddEventListener");
win.webContents.send("setupVideoPlayerVolumeMousewheel", !isEnabled("hide-video-player"));
});
};