当尝试使用firebase UI登录电子应用时,我遇到了这个问题:
此应用程序所在的环境不支持此操作 继续前进。 " location.protocol"必须是http,https或 必须启用chrome-extension和web存储
但我无法在main.js中更改loadURL中的协议,您是否知道如何让firebase UI认为该协议是http?
mainWindow.loadURL(url.format({ pathname: path.join(__dirname, 'login.html'), protocol: 'file:', slashes: true }))