Add channels page

This commit is contained in:
2025-12-10 18:22:04 +01:00
parent 009ecdc2ca
commit cd77b08df2
10 changed files with 242 additions and 3 deletions

24
src/main/node/app.js Normal file
View File

@@ -0,0 +1,24 @@
const { app, BrowserWindow } = require('electron');
function createWindow() {
const url = process.env.ELECTRON_START_URL || "https://imgfloat.kruhlmann.dev/channels";
const width = Number.parseInt(process.env.ELECTRON_WINDOW_WIDTH, 10) || 1920;
const height = Number.parseInt(process.env.ELECTRON_WINDOW_HEIGHT, 10) || 1080;
const win = new BrowserWindow({
width: width,
height: height,
transparent: true,
frame: false,
alwaysOnTop: false,
webPreferences: {
backgroundThrottling: false
}
});
win.loadURL(url);
}
app.whenReady().then(() => {
createWindow();
});