[Splash > Preload] Remove old unused funcs from pre-rewrite
This commit is contained in:
parent
eff05c5226
commit
3af40a932e
1 changed files with 2 additions and 8 deletions
|
@ -1,9 +1,7 @@
|
||||||
const { app, contextBridge, ipcRenderer } = require('electron');
|
const { contextBridge, ipcRenderer } = require('electron');
|
||||||
|
|
||||||
const { saferShellOpenExternal } = require('../utils/securityUtils');
|
const { saferShellOpenExternal } = require('../utils/securityUtils');
|
||||||
|
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
|
||||||
const oaConfig = JSON.parse(urlParams.get('oaConfig'));
|
|
||||||
|
|
||||||
contextBridge.exposeInMainWorld('DiscordSplash', {
|
contextBridge.exposeInMainWorld('DiscordSplash', {
|
||||||
signalReady: () => ipcRenderer.send('DISCORD_SPLASH_SCREEN_READY'),
|
signalReady: () => ipcRenderer.send('DISCORD_SPLASH_SCREEN_READY'),
|
||||||
|
@ -15,9 +13,5 @@ contextBridge.exposeInMainWorld('DiscordSplash', {
|
||||||
},
|
},
|
||||||
|
|
||||||
openUrl: saferShellOpenExternal,
|
openUrl: saferShellOpenExternal,
|
||||||
quitDiscord: () => ipcRenderer.send('DISCORD_SPLASH_SCREEN_QUIT'),
|
quitDiscord: () => ipcRenderer.send('DISCORD_SPLASH_SCREEN_QUIT')
|
||||||
|
|
||||||
getCSS: callback => oaConfig.themeSync !== false ? ipcRenderer.on('DISCORD_GET_CSS', (_, value) => {
|
|
||||||
callback(value);
|
|
||||||
}) : {}
|
|
||||||
});
|
});
|
Loading…
Add table
Add a link
Reference in a new issue