jsonnull/electron-trpc

No way to access window from request

Closed this issue · 0 comments

I would like to add a route that toggles DevTools and in order to do that I need access to the BrowserWindow that the request was made from. It doesn't look like there is a way for this, which is kind of strange as I'm seeing loads of use-cases where you would need the instance of the BrowserWindow. Or have I missed something?

EDIT: Found the createContext property :)