actually do some work on discord_native
parent
dd195ba15a
commit
b606e2b0e4
@ -0,0 +1,17 @@
|
||||
function getVersion() {
|
||||
return '0.0.17'
|
||||
}
|
||||
|
||||
function getReleaseChannel() {
|
||||
return 'stable'
|
||||
}
|
||||
|
||||
async function getPath(path) {
|
||||
return Promise.reject("stubbed out")
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getVersion,
|
||||
getReleaseChannel,
|
||||
getPath
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
const { contextBridge } = require('electron')
|
||||
function preload(opts) {
|
||||
const DiscordNative = require("./discord_native")
|
||||
|
||||
const DiscordNative = require("./discord_native")
|
||||
|
||||
contextBridge.exposeInMainWorld(
|
||||
'DiscordNative', DiscordNative
|
||||
)
|
||||
window.Modules = opts.Modules
|
||||
window.DiscordNative = DiscordNative
|
||||
}
|
||||
|
||||
preload({Modules: {discord_utils: {}}})
|
||||
|
Loading…
Reference in new issue