2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-06-26 07:13:26 +00:00
nativefier/src
Ronan Jouchet 331fe8db39
Fix logging out users on upgrade / app recreate with same URL (fix #1176) (PR #1179)
This is a follow-up of https://github.com/nativefier/nativefier/pull/1162#discussion_r623766247

PR #1162 introduced a new `generateRandomSuffix` helper function,
used it for its needs (avoiding collisions of injected js/css).

But it also replaced existing appname normalizing logic with it,
introducing randomness in a place that used to be deterministic.

As a result, starting with dd6e15fb5 / v43.1.0, re-creating an app would cause
the app to use a different appName, thus a different appData folder, thus
losing user data including cookies.

This PR leaves the `--inject` fixes of #1176, but reverts the appName logic
to the pre-#1176 code.
2021-05-03 11:16:50 -04:00
..
build Fix logging out users on upgrade / app recreate with same URL (fix #1176) (PR #1179) 2021-05-03 11:16:50 -04:00
helpers Fix injecting multiple css/js files (fix #458) (#1162) 2021-04-30 11:04:10 -04:00
infer Docker: fix Windows builds (fix #997), line endings, switch to Alpine (PR #1122) 2021-03-02 00:16:30 -05:00
options Support setting the browserWindow's language (fix #175) (PR #1173 ) 2021-04-30 23:16:57 -04:00
utils App: Automatically consider known login pages as internal (fix #706) (PR #1124) 2021-03-10 19:20:53 -05:00
cli.ts App: replace console.xyz calls with loglevel.xyz, with a level controlled by app argv --verbose (#1172) 2021-04-30 23:21:37 -04:00
constants.ts Bump to Electron 12.0.6 with security fixes 2021-05-01 10:48:29 -04:00
integration-test.ts Support setting the browserWindow's language (fix #175) (PR #1173 ) 2021-04-30 23:16:57 -04:00
jestSetupFiles.ts Revamp and move to TypeScript (#898) 2020-03-15 16:50:01 -04:00
main.ts Bump eslint to 7.x, fix new lint errors 2020-07-18 11:19:58 -04:00