123456789101112131415161718192021222324 |
- /*
- * @Author: fhj
- * @LastEditors: fhj
- * @Description:
- */
- // window.addEventListener('DOMContentLoaded', () => {
- // const replaceText = (selector, text) => {
- // const element = document.getElementById(selector)
- // if (element) element.innerText = text
- // }
- // for (const dependency of ['chrome', 'node', 'electron']) {
- // replaceText(`${dependency}-version`, process.versions[dependency])
- // }
- // })
- const {get,post} = require('./utils/index')
- const { contextBridge } = require('electron');
- contextBridge.exposeInMainWorld('nodeRequest', {
- get,
- post
- });
|