mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
basic implementation of saved searches finished, closes #83
This commit is contained in:
@@ -219,4 +219,15 @@ function toObject(array, fn) {
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
function randomString(len) {
|
||||
let text = "";
|
||||
const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
||||
|
||||
for (let i = 0; i < len; i++) {
|
||||
text += possible.charAt(Math.floor(Math.random() * possible.length));
|
||||
}
|
||||
|
||||
return text;
|
||||
}
|
||||
Reference in New Issue
Block a user