In my application, I am managing two separate BrowserWindows where one of them has contextIsolation disabled. This leads to an error when attempting to utilize contextBridge.exposeInMainWorld
:
Error: contextBridge API can only be used when contextIsolation is enabled
I am wondering if there is a way to detect the status of contextIsolation from the preload script so that I can handle setting window properties directly as a fallback option in those instances?