Sync
This commit is contained in:
@@ -13,5 +13,6 @@ function getMojangAuth(username, password) {
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getMicrosoftAuth
|
||||
getMicrosoftAuth,
|
||||
getMojangAuth
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
const { shell, contextBridge, ipcRenderer } = require("electron")
|
||||
const { contextBridge, ipcRenderer } = require("electron")
|
||||
|
||||
contextBridge.executeInMainWorld("system", {
|
||||
openInBrowser: (url) => shell.openExternal(url),
|
||||
call: (method, args) => ipcRenderer.send("call", { method, args })
|
||||
contextBridge.exposeInMainWorld("system", {
|
||||
openInBrowser: (url) => ipcRenderer.send("call", { method: "shell::openExternal", args: { url } }),
|
||||
call: (method, args) => ipcRenderer.send("call", { method, args }),
|
||||
result: (method, callback) => ipcRenderer.on(`Response<${method}>`, (event, data) => callback(data))
|
||||
})
|
||||
Reference in New Issue
Block a user