1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00
This commit is contained in:
Dick Choi
2016-08-28 21:54:33 +09:00
parent 73dd0db529
commit 5163ab134e
4 changed files with 4 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ function createNote (storageKey, input) {
while (!isUnique) {
try {
sander.statSync(path.join(storage.path, 'notes', key + '.cson'))
key = keygen()
} catch (err) {
if (err.code === 'ENOENT') {
isUnique = true