Skip to content

Commit 68c417c

Browse files
committed
remove support for mediaPanel option in new config.yaml file
1 parent 4841f76 commit 68c417c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5142,7 +5142,7 @@ function updateRangeValue( el ) {
51425142
const isSelfHosted = window.location.hostname != 'audiomotion.app',
51435143
urlParams = new URL( window.location ).searchParams,
51445144
userMode = urlParams.get('mode'),
5145-
userFrontPanel = urlParams.get('frontPanel') || urlParams.get('mediaPanel'), // `mediaPanel` is deprecated
5145+
userFrontPanel = urlParams.get('frontPanel') || urlParams.get('mediaPanel'), // fallback to `mediaPanel` (deprecated)
51465146
enableDebug = urlParams.get('debug') != null;
51475147

51485148
if ( enableDebug ) {
@@ -5198,7 +5198,7 @@ function updateRangeValue( el ) {
51985198
serverConfig = {};
51995199
}
52005200

5201-
serverConfig = { ...SERVERCFG_DEFAULTS, frontPanel: serverConfig.mediaPanel, ...serverConfig }; // note: `mediaPanel` is deprecated
5201+
serverConfig = { ...SERVERCFG_DEFAULTS, ...serverConfig };
52025202

52035203
supportsFileSystemAPI = serverConfig.enableLocalAccess && !! window.showDirectoryPicker;
52045204

0 commit comments

Comments
 (0)