Trello Login Page Fails in new Browser Window


I am trying to integrate Trello using OAuth in my application. But when I am redirected to the trello login page, the page fails with the following error

When I open the page in Chrome, it works fine. I thought this may be due to security settings so I relaxed these as follows:

connectToTrelloWindow = new BrowserWindow({width: 400, height: 600, frame:true, webPreferences:{webSecurity:false}});

But the error still remains. The error in the js console is “Uncaught ReferenceError” : $ is not defined.

I suspect that this is due to some setting in electron but I am not very sure. Any pointers, how to fix this?


Instead of webSecurity, I turned off nodeIntegration and it worked