Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Restore login functionality broken since Electron 5.x #826

Merged
merged 1 commit into from Aug 22, 2019

Conversation

kiesel
Copy link
Contributor

@kiesel kiesel commented Aug 1, 2019

nodeIntegration is required if eg. Javascript code makes use of the
require expression to import classes into the current scope. login.js
uses an electron import - without it, the callback mechanism does not
work, and thus the whole login functionality.

Electron seems to have changed the default value for a windows nodeIntegration to false since version 5 (see https://stackoverflow.com/questions/55093700/electron-5-0-0-uncaught-referenceerror-require-is-not-defined)

Without the integration, the login component's functionality is broken, though. This PR enables the nodeIntegration feature for the login window and makes it properly propagate the given credentials.

Tested with Electron 6.0.0 on Linux.

nodeIntegration is required if eg. Javascript code makes use of the
`require` expression to import classes into the current scope. login.js
uses an electron import - without it, the callback mechanism does not
work, and thus the whole login functionality.
@ronjouch ronjouch changed the title Restore login window functionality with modern electron Restore login functionality broken since Electron 5.x Aug 22, 2019
@ronjouch
Copy link
Contributor

@kiesel thanks! Merging.

@ronjouch ronjouch merged commit b4d1ee0 into nativefier:master Aug 22, 2019
@ronjouch ronjouch mentioned this pull request Aug 22, 2019
Adam777Z pushed a commit to Adam777Z/nativefier that referenced this pull request Nov 9, 2022
)

nodeIntegration is required if eg. Javascript code makes use of the
`require` expression to import classes into the current scope. login.js
uses an electron import - without it, the callback mechanism does not
work, and thus the whole login functionality.

Electron seems to have changed the default value for a windows `nodeIntegration` to `false` since version 5 (see https://stackoverflow.com/questions/55093700/electron-5-0-0-uncaught-referenceerror-require-is-not-defined)

Without the integration, the login component's functionality is broken, though. This PR enables the nodeIntegration feature for the login window and makes it properly propagate the given credentials.

Tested with Electron 6.0.0 on Linux.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants