mirror of https://github.com/keeweb/keeweb
using optional chaining
parent
96ee68dee7
commit
6a31bba69c
1
.babelrc
1
.babelrc
|
@ -6,6 +6,7 @@
|
|||
"useBuiltIns": true
|
||||
}],
|
||||
"@babel/plugin-proposal-optional-catch-binding",
|
||||
"@babel/plugin-proposal-optional-chaining",
|
||||
"@babel/plugin-external-helpers"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -204,7 +204,7 @@ AutoTypeRunner.prototype.resolveOp = function(op) {
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (this.context && this.context.resolved && this.context.resolved[lowerValue]) {
|
||||
if (this.context?.resolved?.[lowerValue]) {
|
||||
op.type = 'text';
|
||||
op.value = this.context.resolved[lowerValue];
|
||||
return;
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
"@babel/core": "^7.9.6",
|
||||
"@babel/plugin-external-helpers": "^7.8.3",
|
||||
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
|
||||
"@babel/preset-env": "^7.9.6",
|
||||
"@keeweb/keeweb-native-modules": "https://github.com/keeweb/keeweb-native-modules/releases/download/0.1.6/keeweb-native-modules.tgz",
|
||||
"adm-zip": "^0.4.14",
|
||||
|
|
Loading…
Reference in New Issue