Skip to content

Commit f898019

Browse files
committed
Add console logs to debug windows build
1 parent 2099db3 commit f898019

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

kolibri/plugins/epub_viewer/assets/src/views/SettingsSideBar.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,17 @@
262262
this.$emit('setTheme', this.themes.WHITE); // apply the default theme
263263
}
264264
this.$nextTick(() => {
265-
this.$refs.addCustomThemeButton.$refs.button.focus();
265+
console.log('refs', this.$refs);
266+
console.log('refs.addCustomThemeButton', this.$refs.addCustomThemeButton);
267+
console.log('refs.addCustomThemeButton.$refs', this.$refs.addCustomThemeButton.$refs);
268+
console.log(
269+
'refs.addCustomThemeButton.$refs.button',
270+
this.$refs.addCustomThemeButton.$refs.button
271+
);
272+
273+
if (this.$refs.addCustomThemeButton && this.$refs.addCustomThemeButton.$refs.button) {
274+
this.$refs.addCustomThemeButton.$refs.button.focus();
275+
}
266276
});
267277
},
268278
},

0 commit comments

Comments
 (0)