Skip to content

Commit 836dd23

Browse files
committed
fix: change ckeditor5 language config propety check to handle null prototype
1 parent 3161db7 commit 836dd23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ckeditor5/src/integration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default class CKEditor5Integration extends IntegrationModel {
4444
if (languageObject != null) {
4545
if (typeof languageObject === "object") {
4646
// eslint-disable-next-line no-prototype-builtins
47-
if (languageObject.hasOwnProperty("ui")) {
47+
if (Object.prototype.hasOwnProperty.call(languageObject, "ui")) {
4848
return languageObject.ui;
4949
}
5050
return languageObject;

0 commit comments

Comments
 (0)