最近闲的无事,用Electron js写了一个黑客说桌面版
代码也不多,只有22行
const { app, BrowserWindow, Menu} = require('electron');
const path = require('path');
let win;
function createWindow() {
Menu.setApplicationMenu(null);
win = new BrowserWindow({
webPreferences: {
nodeIntegration: true
},
width: 1000,
height: 700,
useContentSize: true,
titleBarStyle: 'hidden',
icon: path.join(__dirname, '../ico/favicon.ico')
});
win.loadURL("https://hackertalk.net/")
if (process.platform === 'darwin') {
app.dock.setIcon(path.join(__dirname, '../ico/favicon.ico'));
}
}
app.whenReady().then(createWindow)
下载链接:https://pan.baidu.com/s/1UaIHzZr2BWHSpPxQoM7wSQ?pwd=rdra
提取码:rdra
快来体验啊!!!
软件截图: