Skip to content

Commit 13ddf7d

Browse files
committed
Fix linters
1 parent d5d422b commit 13ddf7d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module.exports = {
3737
'@typescript-eslint/no-explicit-any': 'off',
3838
'@typescript-eslint/no-namespace': 'off',
3939
'@typescript-eslint/no-var-requires': 'off',
40+
'@typescript-eslint/explicit-module-boundary-types': 'off',
4041
'@typescript-eslint/no-use-before-define': 'off',
4142
'@typescript-eslint/no-empty-interface': 'off',
4243
'@typescript-eslint/quotes': [

packages/jupyterlab-preview/src/preview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ export class VoilaPreview extends DocumentWidget<IFrame, INotebookModel> {
150150
* Reload the preview.
151151
*/
152152
reload(): void {
153-
const iframe = this.content.node.querySelector('iframe')!;
154-
if (iframe.contentWindow) {
153+
const iframe = this.content.node.querySelector('iframe');
154+
if (iframe && iframe.contentWindow) {
155155
iframe.contentWindow.location.reload();
156156
}
157157
}

0 commit comments

Comments
 (0)