Open script service URLs in-app or external
Adds a Service URLs setting (ask / in-Paseo / external browser) that controls where URLs from running scripts open on desktop. First click prompts with a "don't ask again" checkbox; in-Paseo opens a workspace browser tab. Closing a browser tab now clears its session partition.
This commit is contained in:
@@ -43,6 +43,8 @@ contextBridge.exposeInMainWorld("paseoDesktop", {
|
||||
dialog: {
|
||||
ask: (message: string, options?: Record<string, unknown>) =>
|
||||
ipcRenderer.invoke("paseo:dialog:ask", message, options),
|
||||
askWithCheckbox: (message: string, options: Record<string, unknown>) =>
|
||||
ipcRenderer.invoke("paseo:dialog:askWithCheckbox", message, options),
|
||||
open: (options?: Record<string, unknown>) => ipcRenderer.invoke("paseo:dialog:open", options),
|
||||
},
|
||||
notification: {
|
||||
@@ -60,5 +62,7 @@ contextBridge.exposeInMainWorld("paseoDesktop", {
|
||||
browser: {
|
||||
setActivePane: (browserId: string | null) =>
|
||||
ipcRenderer.invoke("paseo:browser:set-active-pane", browserId),
|
||||
clearPartition: (browserId: string) =>
|
||||
ipcRenderer.invoke("paseo:browser:clear-partition", browserId),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user