const { app, BrowserWindow, session } = require('electron');
const path = require('path');
function createWindow() {
const win = new BrowserWindow({
width: 1280,
height: 800,
autoHideMenuBar: true, // ซ่อนเมนูบาร์ด้านบน
webPreferences: {
nodeIntegration: true,
contextIsolation: false
}
});
// อนุญาตการใช้ไมค์และกล้องอัตโนมัติ
session.defaultSession.setPermissionRequestHandler((webContents, permission, callback) => {
if (permission === 'media') {
callback(true);
} else {
callback(false);
}
});
// โหลดหน้าเว็บ (ปรับ URL ตอนรัน dev หรือไฟล์ index.html ตอน build)
win.loadURL(
app.isPackaged
? `file://${path.join(__dirname, 'build/index.html')}`
: 'http://localhost:3000'
);
}
app.whenReady().then(createWindow);
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') app.quit();
});
top of page
เห็ดชิตาเกะปรุงรสจากพืช
ค็อกเทลจากพืช
ค็อกเทลไก่จากพืช
ทอดมันปลากรายจากพืช
น่องไก่ตะไคร้จากพืช
น่องไก่รมควันจากพืช
โบโลญ่าจากพืช
โบโลญ่าพริกจากพืช
ปลากะพงขาวจากพืช
ปลาเค็มจากพืช
ปลาเค็ม (รสปลาร้า) จากพืช
ปลาเค็มอีสานจากพืช
ปลาเนื้ออ่อนจากพืช
ปลาพันสาหร่ายจากพืช
ปลาสลิดจากพืช
bottom of page