mirror of
https://gitlab.com/RemixDev/deemix-gui.git
synced 2024-12-26 17:37:23 +00:00
Removed unused preload channels
This commit is contained in:
parent
475ccfc850
commit
f279ed43b5
|
@ -9,13 +9,13 @@ contextBridge.exposeInMainWorld(
|
|||
"api", {
|
||||
send: (channel, data) => {
|
||||
// whitelist channels
|
||||
let validChannels = ["openDownloadsFolder", "applogin", "selectDownloadFolder"];
|
||||
let validChannels = ["openDownloadsFolder", "selectDownloadFolder"];
|
||||
if (validChannels.includes(channel)) {
|
||||
ipcRenderer.send(channel, data);
|
||||
}
|
||||
},
|
||||
receive: (channel, func) => {
|
||||
let validChannels = ["downloadFolderSelected", "applogin_arl"];
|
||||
let validChannels = ["downloadFolderSelected"];
|
||||
if (validChannels.includes(channel)) {
|
||||
// Deliberately strip event as it includes `sender`
|
||||
ipcRenderer.on(channel, (event, ...args) => func(...args));
|
||||
|
|
Loading…
Reference in a new issue