Fix user.id (convert number to string)

This commit is contained in:
Julia Radzhabova 2021-02-13 12:53:45 +03:00
parent 8ae4d58b96
commit 69e3debc59

View file

@ -424,6 +424,11 @@
return false;
}
if (_config.editorConfig.user && _config.editorConfig.user.id && (typeof _config.editorConfig.user.id == 'number')) {
_config.editorConfig.user.id = _config.editorConfig.user.id.toString();
console.warn("The \"id\" parameter for the editorConfig.user object must be a string.");
}
_config.document.token = _config.token;
}