Don't load document if the config parameter "document.key" isn't string.
This commit is contained in:
parent
f55ce0d375
commit
f178d63915
|
@ -371,6 +371,9 @@
|
|||
|
||||
if (!_config.document.key) {
|
||||
_config.document.key = 'xxxxxxxxxxxxxxxxxxxx'.replace(/[x]/g, function (c) {var r = Math.random() * 16 | 0; return r.toString(16);});
|
||||
} else if (typeof _config.document.key !== 'string') {
|
||||
window.alert("The \"document.key\" parameter for the config object must be string. Please correct it.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue