diff options
Diffstat (limited to 'ext/mixed/js')
-rw-r--r-- | ext/mixed/js/util.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mixed/js/util.js b/ext/mixed/js/util.js index edd49873..c05fb679 100644 --- a/ext/mixed/js/util.js +++ b/ext/mixed/js/util.js @@ -103,6 +103,10 @@ function audioBuildFilename(definition) { } function audioInject(definition, fields, mode) { + if (mode === 'disabled') { + return Promise.resolve(true); + } + const filename = audioBuildFilename(definition); if (!filename) { return Promise.resolve(true); |