experiments in a post-browser web
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(tile-preload): flip 2 leftover trustedBuiltin legacy invokes (settings-schema, get-window-id)

+5 -2
+5 -2
backend/electron/tile-preload.cts
··· 2052 2052 if (!trustedBuiltin) { 2053 2053 return Promise.resolve({ success: false, error: 'api.extensions requires trustedBuiltin' }); 2054 2054 } 2055 - return ipcRenderer.invoke('feature-settings-schema', { extId }); 2055 + return ipcRenderer.invoke('tile:features:settings-schema', { token: tileToken, id: extId }); 2056 2056 }, 2057 2057 }; 2058 2058 ··· 2096 2096 // iframe ran the theme command on behalf of the user-facing window. 2097 2097 let windowId = await ipcRenderer.invoke('get-focused-visible-window-id'); 2098 2098 if (!windowId) { 2099 - windowId = await ipcRenderer.invoke('get-window-id'); 2099 + windowId = await ipcRenderer.invoke('tile:window:get-id', { token: tileToken }); 2100 + if (windowId && typeof windowId === 'object' && 'id' in windowId) { 2101 + windowId = (windowId as { id: number }).id; 2102 + } 2100 2103 } 2101 2104 if (!windowId) { 2102 2105 return { success: false, error: 'No visible window to target' };