#91 authorization header in electron app

This commit is contained in:
Jan Prochazka
2021-04-23 20:39:08 +02:00
parent 73a1fce919
commit 9a2d56bfe4
4 changed files with 30 additions and 3 deletions

View File

@@ -212,8 +212,9 @@ function createWindow() {
]);
apiProcess.on('message', msg => {
if (msg.msgtype == 'listening') {
const { port } = msg;
const { port, authorization } = msg;
global['port'] = port;
global['authorization'] = authorization;
loadMainWindow();
}
});