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

This commit is contained in:
TC
2021-05-04 21:29:39 +02:00
parent 8aeddcf8d8
commit 4cb658daca
4 changed files with 27 additions and 35 deletions

View File

@ -13,7 +13,6 @@ 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"));
});
};