theseus/link-status-preload.js
Local Dev 78d20d6197 Theseus: link-hover status bar (bottom-left href pill)
Firefox / Chrome-style small pill at the bottom-left of the window
showing the href when the pointer hovers a link, hidden when the
pointer leaves. Fed by webContents.update-target-url on every tab;
auto-sizes to its text via an IPC resize channel.

Cleared on tab switch so a lingering hover pill from tab A doesn't
carry across to tab B. Positioned by layout() so it tracks window
resizes.

New files link-status.html + link-status-preload.js registered in
build.files (GOTCHAS.md rule: missing entries silently omit from
the packaged app).

Not shipped yet — bundles into the next Theseus release.
2026-08-29 15:49:30 +02:00

5 lines
255 B
JavaScript

const { contextBridge, ipcRenderer } = require("electron");
contextBridge.exposeInMainWorld("linkstatus", {
onUrl: (cb) => ipcRenderer.on("link-status-url", (_e, url) => cb(url)),
resize: (w, h) => ipcRenderer.invoke("link-status-resize", w, h),
});