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