misc: syntax error

This commit is contained in:
bordun 2021-05-08 16:27:55 +02:00
parent c1669cd03d
commit ccd11ad569

View file

@ -647,7 +647,7 @@ class Widget extends EventEmitter {
if (
// remove quotes
(name[0] === '"' && name[name.length - 1] === '"') ||
(name[0] === '\'' && name[name.length - 1] === '\'') ||
(name[0] === '\'' && name[name.length - 1] === '\'')
) name = name.slice(1, name.length - 1)
if (!this.variables[name]) {