diff --git a/src/client/app/widgets/common/widget.js b/src/client/app/widgets/common/widget.js index 75a14f8c..371b36bd 100644 --- a/src/client/app/widgets/common/widget.js +++ b/src/client/app/widgets/common/widget.js @@ -160,7 +160,7 @@ class Widget extends EventEmitter { } this.disabledProps = [] - this.mathjsDeprecationWarned = false + // this.mathjsDeprecationWarned = false // cache precision if (this.props.precision != undefined) { @@ -586,10 +586,10 @@ class Widget extends EventEmitter { propValue = propValue.replace(/#\{(?:[^{}]|\{[^{}]*\})*\}/g, (m)=>{ // one bracket nesting allowed, if we need two: #\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\} - if (!this.mathjsDeprecationWarned) { - this.mathjsDeprecationWarned = true - ipc.send('error', `Warning: Widget#${this.getProp('id')} MathJS syntax (#{}) is deprecated and will be removed in the future. Consider using the Javascript syntax instead.`) - } + // if (!this.mathjsDeprecationWarned) { + // this.mathjsDeprecationWarned = true + // ipc.send('error', `Warning: Widget#${this.getProp('id')} MathJS syntax (#{}) is deprecated and will be removed in the future. Consider using the Javascript syntax instead.`) + // } // unescape brackets (not needed anymore, just here for backward compatibility) m = m.replace(/\\(\{|\})/g, '$1')