electron-browser-shell
electron-browser-shell copied to clipboard
Fix other session icons
thank for your project.
when i use browser-action to display extension icons.
it can't show in a default-session window.
so i added a method called setupProtocol in browser/index.ts
public setupProtocol(session:Electron.Session){ this.api.browserAction.setupProtocol(session) }
after that
i added a public method in api/browser-action.ts
such like this
public setupProtocol(session:Electron.Session){ return session.protocol.registerBufferProtocol('crx', this.handleCrxRequest) }
so ,we can register the protocol in other sessions.
and i also added an api to getCurrentWindow
✅ By sending this pull request, I agree to the Contributor License Agreement of this project.