mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Remove unwanted getLang handlers
This commit is contained in:
parent
7f53710d6a
commit
bdb09bb912
1 changed files with 0 additions and 6 deletions
|
@ -14,9 +14,6 @@ export function registerIpc() {
|
||||||
ipcMain.on("setLang", (event, lang: string) => {
|
ipcMain.on("setLang", (event, lang: string) => {
|
||||||
setLang(lang);
|
setLang(lang);
|
||||||
});
|
});
|
||||||
ipcMain.on("getLang", (event, object: string) => {
|
|
||||||
getLang(object);
|
|
||||||
});
|
|
||||||
ipcMain.on("open-external-link", (event, href: string) => {
|
ipcMain.on("open-external-link", (event, href: string) => {
|
||||||
shell.openExternal(href);
|
shell.openExternal(href);
|
||||||
});
|
});
|
||||||
|
@ -60,9 +57,6 @@ export function registerIpc() {
|
||||||
ipcMain.on("channel", async (event) => {
|
ipcMain.on("channel", async (event) => {
|
||||||
event.returnValue = await getConfig("channel");
|
event.returnValue = await getConfig("channel");
|
||||||
});
|
});
|
||||||
ipcMain.handle("getLang", (event, toGet: string) => {
|
|
||||||
return getLang(toGet);
|
|
||||||
});
|
|
||||||
ipcMain.on("clientmod", async (event, arg) => {
|
ipcMain.on("clientmod", async (event, arg) => {
|
||||||
event.returnValue = await getConfig("mods");
|
event.returnValue = await getConfig("mods");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue