WebAPI.initialize: add missing validity check for proxyUrl (#4565)
This commit is contained in:
parent
ce6cf7b439
commit
6e7930f7a9
1 changed files with 3 additions and 0 deletions
|
@ -895,6 +895,9 @@ export function initialize({
|
||||||
if (!is.string(contentProxyUrl)) {
|
if (!is.string(contentProxyUrl)) {
|
||||||
throw new Error('WebAPI.initialize: Invalid contentProxyUrl');
|
throw new Error('WebAPI.initialize: Invalid contentProxyUrl');
|
||||||
}
|
}
|
||||||
|
if (proxyUrl && !is.string(proxyUrl)) {
|
||||||
|
throw new Error('WebAPI.initialize: Invalid proxyUrl');
|
||||||
|
}
|
||||||
if (!is.string(version)) {
|
if (!is.string(version)) {
|
||||||
throw new Error('WebAPI.initialize: Invalid version');
|
throw new Error('WebAPI.initialize: Invalid version');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue