Ionic + electron application


Hi i am using ionic + electron for making desktop plus mobile application. My application using OAuth-2 for login purpose. For Auth am using InAppBrowser for opening the auth url. In mobile it open with in the InAppBrowser but at desktop it open in new windows and no web page will render.

So, i tried to load that auth url directly with BrowserWindow. It give error like

Uncaught ReferenceError: jQuery is not defined

Uncaught Error: [$injector:modulerr]

So I searched related to this error found that need to inject jQuery in electron side. Now my question is how to inject jQuery on creation of BrowserWindow.