Completely fix api calls
Fix web browser api call
This commit is contained in:
parent
a7d1ce0069
commit
56defb0e5b
4 changed files with 11 additions and 18 deletions
|
@ -107,19 +107,6 @@ const CiderBase = {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
win.webContents.on('did-finish-load', () => {
|
||||
let authFile = require("../auth.json")
|
||||
request({url: "https://devkey.cider.sh/",
|
||||
headers: {
|
||||
"Authorization": "Bearer "+authFile.authHeader
|
||||
}
|
||||
}, function (error, response, body) {
|
||||
if (error) return console.log(error);
|
||||
let parsedJson = JSON.parse(body)
|
||||
win.webContents.send("devkey", parsedJson.Key)
|
||||
})
|
||||
})
|
||||
return win
|
||||
},
|
||||
async InitWebServer() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue