This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Fork of the original `proton_to_keepassxc.js` script by nikspyratos | |
* Original script: https://gist.github.com/nikspyratos/bd0b5ef05a4d82d2d0425cb4be9844db | |
* | |
* This fork fixed a bug with how Proton Pass stores usernames and emails in its JSON export. | |
* Proton Pass uses separate JSON tags for emails (`itemEmail`) and usernames (`itemUsername`). | |
* KeePassXC imports only the `itemUsername` field, which makes it so there might be missing data. | |
* the username is stored under the `itemEmail` tag instead. | |
* | |
* This fork fixes the bug in the original script by checking both tags and using one if the other is not available. |