Open jacobcoughenour opened 3 years ago
We need to add a custom protocol for routing to internal pages like how Chrome does it e.g. chrome://settings/
Here's how browser-base registers theirs with electron: https://github.com/wexond/browser-base/blob/d66fca7dbcc2edcf517f56914e58a525dd641795/src/main/models/protocol.ts#L6-L18
Here's the electron docs for it: https://www.electronjs.org/docs/api/protocol#protocolregisterschemesasprivilegedcustomschemes
We'll also want a way for these internal pages to securely communicate with the main process from inside the BrowserView. Maybe #13 will work?
We need to add a custom protocol for routing to internal pages like how Chrome does it e.g. chrome://settings/
Here's how browser-base registers theirs with electron: https://github.com/wexond/browser-base/blob/d66fca7dbcc2edcf517f56914e58a525dd641795/src/main/models/protocol.ts#L6-L18
Here's the electron docs for it: https://www.electronjs.org/docs/api/protocol#protocolregisterschemesasprivilegedcustomschemes
We'll also want a way for these internal pages to securely communicate with the main process from inside the BrowserView. Maybe #13 will work?