Fixed default provider when no query string is passed
This commit is contained in:
parent
9f625c0d0f
commit
ddc41f49a5
|
@ -37,6 +37,7 @@ function getUrlParams() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getProviderType() {
|
function getProviderType() {
|
||||||
|
var defaultProvider = 'default';
|
||||||
var queryString = getUrlParams();
|
var queryString = getUrlParams();
|
||||||
|
|
||||||
// If the environment is node or the query string is empty,
|
// If the environment is node or the query string is empty,
|
||||||
|
@ -45,7 +46,7 @@ function getProviderType() {
|
||||||
return defaultProvider;
|
return defaultProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
return queryString['filer-provider'] || 'default';
|
return queryString['filer-provider'] || defaultProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup(callback) {
|
function setup(callback) {
|
||||||
|
|
Loading…
Reference in New Issue