electron-browser-shell icon indicating copy to clipboard operation
electron-browser-shell copied to clipboard

Fix other session icons

Open yhtt2020 opened this issue 3 years ago • 0 comments

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.

yhtt2020 avatar Jul 05 '22 01:07 yhtt2020