Initial curated chimera source from a8ae5b1db07fb49926c94585e2718e5130330974
This commit is contained in:
commit
c737a37f71
531 files changed
+119270
No files matched your search
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
const { contextBridge, ipcRenderer } = require('electron');
|
||||
|
||||
// ── Bitcoin address to encode in the QR code ────────────────────────────────
|
||||
// Replace this with your actual Bitcoin address.
|
||||
const BITCOIN_ADDRESS = '3Kt8L3FRS12XW6HJt9QqFGd8irxBc8xTD4';
|
||||
|
||||
contextBridge.exposeInMainWorld('donate', {
|
||||
openX: () => ipcRenderer.send('donation:open-x'),
|
||||
openRevolut: () => ipcRenderer.send('donation:open-revolut'),
|
||||
dismiss: () => ipcRenderer.send('donation:dismiss'),
|
||||
exitApp: () => ipcRenderer.send('donation:exit-app'),
|
||||
btcAddress: () => BITCOIN_ADDRESS,
|
||||
// QR is generated as SVG in the main process (no canvas required)
|
||||
genQR: () => ipcRenderer.invoke('donation:gen-qr'),
|
||||
});
|
||||
Reference in new issue
Block a user