1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

iOS: Fixed attaching images

This commit is contained in:
Laurent Cozic
2017-11-19 22:08:58 +00:00
parent cbd2075156
commit e80dd59da2
17 changed files with 902 additions and 608 deletions

View File

@ -181,7 +181,8 @@ class Setting extends BaseModel {
static value(key) {
if (key in this.constants_) {
let output = this.constants_[key];
const v = this.constants_[key];
const output = typeof v === 'function' ? v() : v;
if (output == 'SET_ME') throw new Error('Setting constant has not been set: ' + key);
return output;
}