Password importer breaks with malformed CSV
If you upload that CSV in production, it shows the preview and disables the bad rows.
In staging, it errors out. In Firefox for sure. If I do it locally, I get an error triggered by core.js:1601
saying:
ReferenceError: global is not defined
Stack trace:
lolcation@http://localhost:4200/vendor.js:115437:3
URL@http://localhost:4200/vendor.js:115561:14
./src/app/importer/importer.service.ts/ImporterService.prototype.urlToName@http://localhost:4200/main.js:7181:25
./src/app/importer/importer.service.ts/ImporterService.prototype.validateName@http://localhost:4200/main.js:7171:20
./src/app/importer/importer.service.ts/ImporterService.prototype.deserialize@http://localhost:4200/main.js:7121:48
./src/app/importer/importer.service.ts/ImporterService.prototype.textToSecrets@http://localhost:4200/main.js:7090:16
./src/app/importer/importer.component.ts/ImporterComponent.prototype.readThis/myReader.onloadend@http://localhost:4200/main.js:6789:27
./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invoke@http://localhost:4200/polyfills.js:2704:17
onInvoke@http://localhost:4200/vendor.js:41860:24
./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invoke@http://localhost:4200/polyfills.js:2703:17
./node_modules/zone.js/dist/zone.js/</Zone.prototype.runGuarded@http://localhost:4200/polyfills.js:2467:28
./node_modules/zone.js/dist/zone.js/</Zone.prototype.wrap/<@http://localhost:4200/polyfills.js:2445:24
Edited by Brendan Berkley