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
Doonhee
กาแฟยุนฮี คอฟฟี่
Coffee
กาแฟปรุงสำเร็จพร้อมขง กลิ่นหอม กลมกล่อม ได้ประโยชน์
มีวิตามินซีสูง
ช่วยให้น้ำตาลในเลือดและอินซูลินอยู่
ในภาวะสมดุล ช่วยบ่าเซลล์มะเร็ง
ช่วยบำรุงสายตา
ป้องกันไม่ให้เกิดอาการหิวบ่อย
มีส่วนช่วยในการลดน้ำหนัก
ควบคุมระดับน้ำตาลในเลือด
ฟอสฟอรัส และแคลเซียมสูง
ช่วยช่อมแชมเซลล์ที่ถูกกำลาย ช่วย
ป้องกันเซลล์ไม่ให้เสื่อมตัวเร็วอีกด้วย
บำรุงร่างกาย
ช่วยทำให้ผิวพรรณเปล่งปลั่ง ใบหน้า
แจ่มใส ช่วยบำรุงรักษาสายตา
bottom of page