交付双端基础、实时联系人和隔离浏览器
This commit is contained in:
1 parent
43687d5e7e
commit
67fef3ff87
59 files changed
+5094
-1
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { contextBridge, ipcRenderer } from 'electron'
|
||||
|
||||
const apiArgument = process.argv.find((value) => value.startsWith('--xhchat-api='))
|
||||
|
||||
contextBridge.exposeInMainWorld('xhchat', {
|
||||
apiBase: apiArgument?.slice('--xhchat-api='.length),
|
||||
signChallenge: (username: string, challenge: string) => ipcRenderer.invoke('device:sign', username, challenge),
|
||||
openBrowser: () => ipcRenderer.invoke('browser:open'),
|
||||
})
|
||||
Reference in new issue
Block a user