Make the riot-desktop callback args more generic and encrypt the args
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
67cf1e7536
commit
6fdeca93b6
3 changed files with 39 additions and 12 deletions
|
@ -35,7 +35,7 @@ const tray = require('./tray');
|
|||
const vectorMenu = require('./vectormenu');
|
||||
const webContentsHandler = require('./webcontents-handler');
|
||||
const updater = require('./updater');
|
||||
const {getProfileFromDeeplink, protocolInit} = require('./protocol');
|
||||
const {getProfileFromDeeplink, protocolInit, getArgs} = require('./protocol');
|
||||
|
||||
const windowStateKeeper = require('electron-window-state');
|
||||
const Store = require('electron-store');
|
||||
|
@ -237,10 +237,8 @@ ipcMain.on('ipcCall', async function(ev, payload) {
|
|||
case 'getConfig':
|
||||
ret = vectorConfig;
|
||||
break;
|
||||
case 'getUserDataPath':
|
||||
if (argv['profile-dir'] || argv['profile']) {
|
||||
ret = app.getPath('userData');
|
||||
}
|
||||
case 'getRiotDesktopSsoArgs':
|
||||
ret = getArgs(argv);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue