@@ -4,11 +4,7 @@ import System from "core/system"
44import win from "core/window"
55import ApisPreset from "core/presets/apis"
66import * as AllPlugins from "core/plugins/all"
7- import { parseSeach , filterConfigs } from "core/utils"
8-
9- const CONFIGS = [ "url" , "urls" , "urls.primaryName" , "spec" , "validatorUrl" , "onComplete" , "onFailure" , "authorizations" , "docExpansion" ,
10- "apisSorter" , "operationsSorter" , "supportedSubmitMethods" , "dom_id" , "defaultModelRendering" , "oauth2RedirectUrl" ,
11- "showRequestHeaders" , "custom" , "modelPropertyMacro" , "parameterMacro" , "displayOperationId" , "displayRequestDuration" ]
7+ import { parseSearch } from "core/utils"
128
139// eslint-disable-next-line no-undef
1410const { GIT_DIRTY , GIT_COMMIT , PACKAGE_VERSION } = buildInfo
@@ -80,7 +76,7 @@ module.exports = function SwaggerUI(opts) {
8076 store . register ( [ constructorConfig . plugins , inlinePlugin ] )
8177
8278 var system = store . getSystem ( )
83- let queryConfig = parseSeach ( )
79+ let queryConfig = parseSearch ( )
8480
8581 system . initOAuth = system . authActions . configureAuth
8682
@@ -91,7 +87,7 @@ module.exports = function SwaggerUI(opts) {
9187
9288 let localConfig = system . specSelectors . getLocalConfig ? system . specSelectors . getLocalConfig ( ) : { }
9389 let mergedConfig = deepExtend ( { } , localConfig , constructorConfig , fetchedConfig || { } , queryConfig )
94- store . setConfigs ( filterConfigs ( mergedConfig , CONFIGS ) )
90+ store . setConfigs ( mergedConfig )
9591
9692 if ( fetchedConfig !== null ) {
9793 if ( ! queryConfig . url && typeof mergedConfig . spec === "object" && Object . keys ( mergedConfig . spec ) . length ) {
0 commit comments