mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-15 20:01:06 +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 {
|
public all (cb: (key: string, value: KeyringJson) => void): void {
|
||||||
fs
|
fs
|
||||||
.readdirSync(this.#path)
|
.readdirSync(this.#path)
|
||||||
.filter((key): boolean => !['.', '..'].includes(key))
|
.filter((key): boolean => !['.', '..', '.DS_Store'].includes(key))
|
||||||
.forEach((key): void => {
|
.forEach((key): void => {
|
||||||
cb(key, this._readKey(key));
|
cb(key, this._readKey(key));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user