You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
All: Made WebDAV options dynamics so that changing username or password doesn't require restarting the app
This commit is contained in:
@ -44,4 +44,13 @@ ObjectUtils.fieldsEqual = function(o1, o2) {
|
||||
return true;
|
||||
}
|
||||
|
||||
ObjectUtils.convertValuesToFunctions = function(o) {
|
||||
const output = {};
|
||||
for (let n in o) {
|
||||
if (!o.hasOwnProperty(n)) continue;
|
||||
output[n] = () => { return typeof o[n] === 'function' ? o[n]() : o[n]; }
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
||||
module.exports = ObjectUtils;
|
Reference in New Issue
Block a user