New thin vertical column (44 px) on the left side of every page, Opera-style. Click an icon to open its web app in a new tab; if a tab is already open on that host, we focus it instead of stacking another one. Hidden in HTML fullscreen so a video still fills the window; toggle via Settings › General › Quick links › Show the strip. Defaults ship X, Telegram and WhatsApp. The Settings › General › Quick links section lists the current entries with a Remove button each and a Title + URL + Add row that auto-prefixes https:// and auto-fills the title from the hostname when empty. Edits write the whole settings.quickLinks array; the strip view and the window layout react through settings-set, so no restart is needed. Settings › General › Updates panel also now runs standalone (no longer gated by anything in the shared cfg.get().then() init), so a thrown exception in an unrelated feature can't leave it stuck on "Loading…" any more — the version line reads immediately and Check for Updates stays functional.
7 lines
376 B
JavaScript
7 lines
376 B
JavaScript
const { contextBridge, ipcRenderer } = require("electron");
|
|
contextBridge.exposeInMainWorld("quicklinks", {
|
|
getLinks: () => ipcRenderer.invoke("quicklinks-get"),
|
|
open: (id) => ipcRenderer.invoke("quicklinks-open", String(id || "")),
|
|
add: () => ipcRenderer.invoke("quicklinks-add"),
|
|
onLinks: (cb) => ipcRenderer.on("quicklinks-update", (_e, d) => cb(d)),
|
|
});
|