Browser version - Self-hosted proxy (server/) that serves the web build and bridges WebSocket connections to Mumble servers over TLS, with a server allowlist or allow-any mode - WebSocket transport and a browser platform layer; identities live in the browser - npm run build:web, dev:web, proxy and test:e2e:web; proxy unit tests Interface - Toolbar next to mute and deafen: description editor, settings, expand or collapse all - Channels with a description show a marker; resting on the row previews it - Collapse all keeps channels with people open - Hints (title tooltips) can be switched on in a new Accessibility settings tab - New identities can set the username suggested when connecting - Own user information tells the client address from the one the server sees Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
944 B
JavaScript
18 lines
944 B
JavaScript
// A bare browser window for the web E2E: no preload, so the page runs as it would in a browser.
|
|
const { app, BrowserWindow, session } = require('electron');
|
|
const fs = require('node:fs');
|
|
const path = require('node:path');
|
|
|
|
app.whenReady().then(() => {
|
|
session.defaultSession.setPermissionRequestHandler((_wc, _permission, cb) => cb(true));
|
|
// Electron would open a save dialog; a browser saves to the downloads folder
|
|
session.defaultSession.on('will-download', (_e, item) => {
|
|
const file = path.join(process.env.MUMH5_DOWNLOADS, item.getFilename());
|
|
item.setSavePath(file);
|
|
item.once('done', (_ev, state) => { if (state === 'completed') fs.writeFileSync(file + '.done', ''); });
|
|
});
|
|
const win = new BrowserWindow({ width: 1280, height: 800, webPreferences: { contextIsolation: true, sandbox: true, nodeIntegration: false } });
|
|
win.loadURL(process.env.MUMH5_WEB_URL);
|
|
});
|
|
app.on('window-all-closed', () => app.quit());
|