Skip to content

Commit 4d840d1

Browse files
authored
Check if config exists in load function
1 parent a139ab0 commit 4d840d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usergui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ class UserGui {
729729
load() {
730730
const config = this.getConfig();
731731

732-
if(this.document) {
732+
if(this.document && config) {
733733
config.forEach(elemConfig => {
734734
this.setData(elemConfig.name, elemConfig.value);
735735
})

0 commit comments

Comments
 (0)