mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-11 18:31:02 +00:00
Ignore .DS_Store (#339)
As per https://github.com/polkadot-js/ui/issues/337#issuecomment-651617556
This commit is contained in:
@@ -23,7 +23,7 @@ export default class FileStore implements KeyringStore {
|
||||
public all (cb: (key: string, value: KeyringJson) => void): void {
|
||||
fs
|
||||
.readdirSync(this.#path)
|
||||
.filter((key): boolean => !['.', '..'].includes(key))
|
||||
.filter((key): boolean => !['.', '..', '.DS_Store'].includes(key))
|
||||
.forEach((key): void => {
|
||||
cb(key, this._readKey(key));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user