From a477d202ed406936ba604f865fd49f4d194af179 Mon Sep 17 00:00:00 2001 From: bordun Date: Sat, 15 May 2021 23:33:24 +0200 Subject: [PATCH 01/17] widget: slightly optimize css property update --- src/client/widgets/common/widget.js | 58 ++++++++++++++++------------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index 37892089..5b71358a 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -235,6 +235,7 @@ class Widget extends EventEmitter { } } + this.style = null this.container = html`
` @@ -1028,51 +1029,61 @@ class Widget extends EventEmitter { var prefix = '#' + this.hash, - scopedCss = scopeCss(css, prefix), + scopedCss = '', unScopedCss = '' + if (css.includes('{')) { - try { + scopedCss = scopeCss(css, prefix) + try { - dummyDOM.style = css - unScopedCss = dummyDOM.getAttribute('style') || '' + dummyDOM.style = css + unScopedCss = dummyDOM.getAttribute('style') || '' - } catch(err) { + } catch(err) { - // fallback for browser that don't allow assigning "style" property - css + // fallback for browser that don't allow assigning "style" property + css .replace(/\{[^}]*\}/g, '') .replace(/^[^@#.]*:.*/gm, (m)=>{ unScopedCss += m[m.length - 1] === ';' ? m : m + ';' }) + } + + if (scopedCss.indexOf('@keyframes') > -1) scopedCss = scopedCss.replace(new RegExp(prefix + '\\s+([0-9]+%|to|from)', 'g'), ' $1') + if (scopedCss.indexOf('&') > -1) scopedCss = scopedCss.replace(new RegExp(prefix + '\\s&', 'g'), prefix) + + } else { + + unScopedCss = css + } - if (scopedCss.indexOf('@keyframes') > -1) scopedCss = scopedCss.replace(new RegExp(prefix + '\\s+([0-9]+%|to|from)', 'g'), ' $1') - if (scopedCss.indexOf('&') > -1) scopedCss = scopedCss.replace(new RegExp(prefix + '\\s&', 'g'), prefix) - var style = html``, - oldStyle = DOM.get(this.container, '> style')[0] + var style = (unScopedCss ? prefix + '{' + unScopedCss + '}\n' : '') + scopedCss - if (oldStyle) { - this.container.replaceChild(style, oldStyle) + if (this.style) { + this.style.innerText = style } else if (scopedCss.length || unScopedCss.length){ - this.container.insertBefore(style, this.container.childNodes[0] || null) + this.style = html`` + this.container.insertBefore(this.style, this.container.childNodes[0] || null) } // apply extra css classes + if (!deepEqual(extraCssClasses, this.extraCssClasses)) { + if (this.extraCssClasses && this.extraCssClasses.length) { + this.container.classList.remove(...this.extraCssClasses) + this.extraCssClasses = [] + } - if (this.extraCssClasses && this.extraCssClasses.length) { - this.container.classList.remove(...this.extraCssClasses) - this.extraCssClasses = [] - } - - if (extraCssClasses.length) { - this.container.classList.add(...extraCssClasses) - this.extraCssClasses = extraCssClasses + if (extraCssClasses.length) { + this.container.classList.add(...extraCssClasses) + this.extraCssClasses = extraCssClasses + } } @@ -1090,9 +1101,6 @@ class Widget extends EventEmitter { } - return style - - } setCssVariables() { From 4939ab1964c5d241b4a04edc6800855cd526cbc7 Mon Sep 17 00:00:00 2001 From: bordun Date: Sun, 16 May 2021 11:11:49 +0200 Subject: [PATCH 02/17] fragments: fragment widgets empty when reloading --- src/server/fragment-manager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/fragment-manager.js b/src/server/fragment-manager.js index 542ccca8..17593c01 100644 --- a/src/server/fragment-manager.js +++ b/src/server/fragment-manager.js @@ -49,6 +49,10 @@ class FragmentManager { this.deleteFragment(resolvedPath) }) + } else { + + ipc.send('fragmentLoad', {path: path, fileContent: this.fragments[resolvedPath]}, clientId) + } } From c3f466d65282aa1f2e15255624e7e199c31da236 Mon Sep 17 00:00:00 2001 From: bordun Date: Sun, 16 May 2021 11:11:54 +0200 Subject: [PATCH 03/17] log: update --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a87abf2f..1ccc1243 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## next +- bug fixes + - matrix: update children when `props` is modified even when the result for `$ = 0` doesn't change + - fragments: fragment widgets empty when reloading + - scripting - expose `console.clear()` From c89252f4cccd04a8b90de00f14d5f5cf5e907a32 Mon Sep 17 00:00:00 2001 From: bordun Date: Sun, 16 May 2021 11:15:19 +0200 Subject: [PATCH 04/17] tree: blink selection when hitting "t" too --- src/client/editor/context-menu.js | 8 +------- src/client/editor/index.js | 2 ++ src/client/ui/ui-tree.js | 12 ++++++++++++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/client/editor/context-menu.js b/src/client/editor/context-menu.js index 9f965873..a1113cb9 100644 --- a/src/client/editor/context-menu.js +++ b/src/client/editor/context-menu.js @@ -85,13 +85,7 @@ var handleClick = function(event) { label: icon('project-diagram') + ' ' + locales('editor_show_in_tree'), action: ()=>{ editor.widgetTree.showWidget(editor.selectedWidgets[0]) - DOM.each(editor.widgetTree.list, '.editing', (el)=>{ - el.classList.add('editor-blink') - el.scrollIntoView({block: 'center'}) - setTimeout(()=>{ - el.classList.remove('editor-blink') - }, 800) - }) + editor.widgetTree.blinkSelected() }, shortcut: 't' }) diff --git a/src/client/editor/index.js b/src/client/editor/index.js index 7e9f5f97..b2246c39 100644 --- a/src/client/editor/index.js +++ b/src/client/editor/index.js @@ -438,6 +438,8 @@ class Editor { case 't': if (!this.selectedWidgets.length) return this.widgetTree.showWidget(editor.selectedWidgets[0]) + this.widgetTree.blinkSelected() + break diff --git a/src/client/ui/ui-tree.js b/src/client/ui/ui-tree.js index 6b24e37c..0d4ed0e2 100644 --- a/src/client/ui/ui-tree.js +++ b/src/client/ui/ui-tree.js @@ -223,6 +223,18 @@ class UiTree extends UiWidget { } + blinkSelected() { + + DOM.each(this.list, '.editing', (el)=>{ + el.classList.add('editor-blink') + el.scrollIntoView({block: 'center'}) + setTimeout(()=>{ + el.classList.remove('editor-blink') + }, 800) + }) + + } + select() { // hint selection in folded containers From 422cec2ba4d845e7a0e154a9ee0f5b1e7a13694b Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 20 May 2021 11:10:54 +0200 Subject: [PATCH 05/17] panel: scrollbar issue on iOS 13+ --- CHANGELOG.md | 5 +++-- src/client/widgets/containers/modal.js | 2 +- src/client/widgets/containers/panel.js | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ccc1243..826e9e5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,11 @@ # Changelog -## next +## 1.9.8 - bug fixes - matrix: update children when `props` is modified even when the result for `$ = 0` doesn't change - - fragments: fragment widgets empty when reloading + - fragments: fragment widgets empty when reloading + - panel: scrollbar issue on iOS 13+ - scripting - expose `console.clear()` diff --git a/src/client/widgets/containers/modal.js b/src/client/widgets/containers/modal.js index 21831c87..99cabbb9 100644 --- a/src/client/widgets/containers/modal.js +++ b/src/client/widgets/containers/modal.js @@ -69,7 +69,7 @@ class Modal extends Panel { this.popupContent = DOM.get(this.popup, '.popup-content')[0] - if (iOS13) { + if (iOS13 && this.getProp('scroll')) { for (let dir in this.iosScrollbars) { this.container.removeChild(this.iosScrollbars[dir].container) this.popupContent.appendChild(this.iosScrollbars[dir].container) diff --git a/src/client/widgets/containers/panel.js b/src/client/widgets/containers/panel.js index b829d3dc..05fc3896 100644 --- a/src/client/widgets/containers/panel.js +++ b/src/client/widgets/containers/panel.js @@ -85,7 +85,7 @@ class Panel extends Container() { this.container.classList.add('contains-widgets') - if (iOS13) { + if (iOS13 && this.getProp('scroll')) { faderDefaults = faderDefaults || Fader.defaults()._props() @@ -291,7 +291,7 @@ class Panel extends Container() { case 'colorBg': this.setCssVariables() case 'colorWidget': - if (iOS13) this.checkScrollBars() + if (iOS13 && this.getProp('scroll')) this.checkScrollBars() case 'colorText': case 'colorFill': case 'colorStroke': From 12a88787f29d8f2f18c95943fcb28f8984c7723a Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 20 May 2021 11:11:00 +0200 Subject: [PATCH 06/17] docs: setVar link to VAR{} syntax --- resources/docs/docs/widgets/scripting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/docs/docs/widgets/scripting.md b/resources/docs/docs/widgets/scripting.md index 4b8abffa..f13be1a4 100644 --- a/resources/docs/docs/widgets/scripting.md +++ b/resources/docs/docs/widgets/scripting.md @@ -123,7 +123,7 @@ Returns the value of a widget's custom variable. - `name`: variable name as a string. - `value`: new value for the variable. -Sets the value of a widget's custom variable. If `ìd` contains wildcards, affects all matching widgets. +Sets the value of a widget's custom variable (see [advanced syntaxes](./advanced-syntaxes.md##ustom-variables-varvariablename-default)). If `ìd` contains wildcards, affects all matching widgets. ---- From 69d3bbb0e54bafc11f423c4b5de82a0cf81d7b41 Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 20 May 2021 11:12:08 +0200 Subject: [PATCH 07/17] docs: update --- resources/docs/docs/widgets/properties-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index b99c3923..66ef5847 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -801,7 +801,7 @@ | property | type |default | description | | --- | --- | --- | --- | - |
script#
| `script` | "" | Script executed whenever the widget's receives the defined event. See documentation. | + |
script#
| `script` | "" | Script executed whenever the widget receives the defined event. See documentation. | |
event#
| `string` | "value" | Define which events trigger the script's execution.

Choices: `value`, `keyboard`, `once` | |
keyBinding#
| `string`|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation).

If the editor is enabled, some keys / combos will not work. | |
keyRepeat#
| `boolean` | true | Set to `false` to prevent keydown repeats when holding the key combo pressed | From ad96b9741b743a804e8e470510cabb5f3830d8c8 Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 20 May 2021 11:16:20 +0200 Subject: [PATCH 08/17] package: 1.9.8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5e1c5b43..7b70f0f3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "open-stage-control", "productName": "Open Stage Control", "description": "Libre and modular OSC / MIDI controller", - "version": "1.9.7", + "version": "1.9.8", "author": { "name": "Jean-Emmanuel Doucet", "email": "jean-emmanuel@ammd.net" From 43fb94ca9de51b6653264bec2c73a0337de2cbb4 Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 20 May 2021 11:25:08 +0200 Subject: [PATCH 09/17] log: format --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 826e9e5f..2aeed297 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,9 +3,9 @@ ## 1.9.8 - bug fixes - - matrix: update children when `props` is modified even when the result for `$ = 0` doesn't change - - fragments: fragment widgets empty when reloading - - panel: scrollbar issue on iOS 13+ + - matrix: update children when `props` is modified even when the result for `$ = 0` doesn't change + - fragments: fragment widgets empty when reloading + - panel: scrollbar issue on iOS 13+ - scripting - expose `console.clear()` From 6f772c94bda748109c30f0e4f2ae72e1451a56f7 Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 3 Jun 2021 20:47:26 +0200 Subject: [PATCH 10/17] matrix: regression from 1.9.8 --- CHANGELOG.md | 5 +++++ src/client/widgets/containers/matrix.js | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2aeed297..4b5153fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.9.9 + +- bug fixes + - matrix: regression from 1.9.8 + ## 1.9.8 - bug fixes diff --git a/src/client/widgets/containers/matrix.js b/src/client/widgets/containers/matrix.js index 4b6fc4f2..0fe0215e 100644 --- a/src/client/widgets/containers/matrix.js +++ b/src/client/widgets/containers/matrix.js @@ -176,8 +176,9 @@ class Matrix extends Panel { propValue = JSON.stringify(propValue) } - var data = [] - for (var i = 0; i < this.getProp('quantity'); i++) { + var data = [], + quantity = this.resolveProp('quantity', undefined, false, false, false) + for (var i = 0; i < quantity; i++) { data[i] = super.resolveProp(propName, propValue, storeLinks, originalWidget, originalPropName, {$: i}) } From 0d420101aec1e0367ecd9a571b438d2faff00185 Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 3 Jun 2021 20:48:33 +0200 Subject: [PATCH 11/17] package v1.9.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7b70f0f3..b38543d5 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "open-stage-control", "productName": "Open Stage Control", "description": "Libre and modular OSC / MIDI controller", - "version": "1.9.8", + "version": "1.9.9", "author": { "name": "Jean-Emmanuel Doucet", "email": "jean-emmanuel@ammd.net" From db734493b2128f6e1b8b2a9485e90a0a5cfd5a1f Mon Sep 17 00:00:00 2001 From: bordun Date: Fri, 11 Jun 2021 12:46:08 +0200 Subject: [PATCH 12/17] matrix: broken nested @{} syntax in props property --- src/client/widgets/common/widget.js | 2 +- src/client/widgets/containers/matrix.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index 5b71358a..7a227bf7 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -517,7 +517,7 @@ class Widget extends EventEmitter { if (content.indexOf('@{') >= 0) { content = balancedReplace('@', '{', '}', content, (subcontent)=>{ - return this.resolveProp(propName, '@{' + subcontent + '}', storeLinks ? 'nested' : false, this) + return this.resolveProp(content, '@{' + subcontent + '}', storeLinks ? 'nested' : false, this) }) } diff --git a/src/client/widgets/containers/matrix.js b/src/client/widgets/containers/matrix.js index 0fe0215e..71305b36 100644 --- a/src/client/widgets/containers/matrix.js +++ b/src/client/widgets/containers/matrix.js @@ -179,7 +179,7 @@ class Matrix extends Panel { var data = [], quantity = this.resolveProp('quantity', undefined, false, false, false) for (var i = 0; i < quantity; i++) { - data[i] = super.resolveProp(propName, propValue, storeLinks, originalWidget, originalPropName, {$: i}) + data[i] = super.resolveProp(propName, propValue, i === 0 ? storeLinks : false, originalWidget, originalPropName, {$: i}) } return data From 261f3c610527e25dd197d7a51e016efd276a1b9b Mon Sep 17 00:00:00 2001 From: bordun Date: Fri, 11 Jun 2021 12:48:15 +0200 Subject: [PATCH 13/17] log: matrix fix --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b5153fb..50679eb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.9.10 + +- bug fixes + - matrix: regression from 1.9.8 (broken nested @{} syntax in props property) + ## 1.9.9 - bug fixes From c5c3c992f294216f69fdf4db0b30dc8a8190d737 Mon Sep 17 00:00:00 2001 From: bordun Date: Fri, 11 Jun 2021 12:49:04 +0200 Subject: [PATCH 14/17] readme: irc server --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 23a1dce3..b98c5313 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Open Stage Control - Website: https://openstagecontrol.ammd.net/ - Forum: https://openstagecontrol.discourse.group/ -- IRC: Freenode #openstagecontrol +- IRC: Libera.chat #openstagecontrol ---- From ee675a7dbd4c703f29f64caadab3cac602691d22 Mon Sep 17 00:00:00 2001 From: bordun Date: Sat, 12 Jun 2021 14:26:09 +0200 Subject: [PATCH 15/17] midi: detect missing binary (eg when deleted by antivirus) and print a message --- .travis.yml | 6 +++--- CHANGELOG.md | 3 +++ src/server/midi.js | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 95ad0b73..a59d45d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,11 +25,11 @@ before_deploy: - npm run package -- --all - npm run package-node - cd $TRAVIS_BUILD_DIR/dist/open-stage-control-linux-x64/resources/app/server/ - - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-linux && chmod +x osc-midi-linux + - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-linux && chmod +x osc-midi-linux && echo "true" > osc-midi.json - cd $TRAVIS_BUILD_DIR/dist/open-stage-control-win32-x64/resources/app/server/ - - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-windows.exe && chmod +x osc-midi-windows.exe + - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-windows.exe && chmod +x osc-midi-windows.exe && echo "true" > osc-midi.json - cd $TRAVIS_BUILD_DIR/dist/open-stage-control-darwin-x64/open-stage-control.app/Contents/Resources/app/server - - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-osx && chmod +x osc-midi-osx + - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-osx && chmod +x osc-midi-osx && echo "true" > osc-midi.json - cd $TRAVIS_BUILD_DIR - npm run deb64 - cd dist diff --git a/CHANGELOG.md b/CHANGELOG.md index 50679eb4..950de394 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ - bug fixes - matrix: regression from 1.9.8 (broken nested @{} syntax in props property) +- misc + - midi: detect missing binary (eg when deleted by antivirus) and print a message + ## 1.9.9 - bug fixes diff --git a/src/server/midi.js b/src/server/midi.js index f0657e6c..ba0cd4c6 100644 --- a/src/server/midi.js +++ b/src/server/midi.js @@ -18,11 +18,19 @@ var midiBinaries = { win32: 'osc-midi-windows.exe' } +var expectMidiBinaries = false, + expectMidiBinariesError = false; +try { + expectMidiBinaries = eval('require("./osc-midi.json")'); +} catch(e) {} + var pythonPathOverride if (process.arch === 'x64' && midiBinaries[process.platform]) { var p = path.resolve(__dirname, midiBinaries[process.platform]) if (fs.existsSync(p)) { pythonPathOverride = p + } else if (expectMidiBinaries) { + expectMidiBinariesError = true; } } @@ -30,6 +38,8 @@ class MidiConverter { constructor() { + if (expectMidiBinariesError) MidiConverter.midiBinariesError() + this.py = new PythonShell('python/midi.py', Object.assign({ args: [ '--params', @@ -112,6 +122,8 @@ class MidiConverter { static list() { + if (expectMidiBinariesError) MidiConverter.midiBinariesError() + PythonShell.run('python/midi.py', Object.assign({pythonPath: MidiConverter.getPythonPath(), args: ['--params', 'list-only']}, pythonOptions), function(e, results) { if (e) { if (e.code === 'ENOENT') { @@ -138,6 +150,14 @@ class MidiConverter { } + static midiBinariesError() { + + console.error(`(ERROR, MIDI) Could not find midi binary file ${p}\nIt may have been deleted by your antivirus.`) + console.log(`(INFO, MIDI) Falling back to python implementation (see https://openstagecontrol.ammd.net/docs/midi/midi-configuration/).`) + expectMidiBinariesError = false + + } + } module.exports = MidiConverter From c369b7354990c708792dba661488d0ffe6aea9a5 Mon Sep 17 00:00:00 2001 From: bordun Date: Sat, 12 Jun 2021 14:29:29 +0200 Subject: [PATCH 16/17] package: v1.9.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b38543d5..40e3ac58 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "open-stage-control", "productName": "Open Stage Control", "description": "Libre and modular OSC / MIDI controller", - "version": "1.9.9", + "version": "1.9.10", "author": { "name": "Jean-Emmanuel Doucet", "email": "jean-emmanuel@ammd.net" From e300d6187c027f1f7a965017fe9b62c379f163c5 Mon Sep 17 00:00:00 2001 From: bordun Date: Sat, 12 Jun 2021 14:39:41 +0200 Subject: [PATCH 17/17] lint: fix --- src/server/midi.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/server/midi.js b/src/server/midi.js index ba0cd4c6..15b0edbe 100644 --- a/src/server/midi.js +++ b/src/server/midi.js @@ -19,10 +19,10 @@ var midiBinaries = { } var expectMidiBinaries = false, - expectMidiBinariesError = false; + expectMidiBinariesError = false try { - expectMidiBinaries = eval('require("./osc-midi.json")'); -} catch(e) {} + expectMidiBinaries = eval('require("./osc-midi.json")') +} catch(e) {} var pythonPathOverride if (process.arch === 'x64' && midiBinaries[process.platform]) { @@ -30,7 +30,7 @@ if (process.arch === 'x64' && midiBinaries[process.platform]) { if (fs.existsSync(p)) { pythonPathOverride = p } else if (expectMidiBinaries) { - expectMidiBinariesError = true; + expectMidiBinariesError = true } } @@ -153,7 +153,7 @@ class MidiConverter { static midiBinariesError() { console.error(`(ERROR, MIDI) Could not find midi binary file ${p}\nIt may have been deleted by your antivirus.`) - console.log(`(INFO, MIDI) Falling back to python implementation (see https://openstagecontrol.ammd.net/docs/midi/midi-configuration/).`) + console.log('(INFO, MIDI) Falling back to python implementation (see https://openstagecontrol.ammd.net/docs/midi/midi-configuration/).') expectMidiBinariesError = false }