Skip to content

Commit 129602d

Browse files
committed
Fix lint error
1 parent 4bf892d commit 129602d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/widgetsnbextension/src/extension.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function register_events(Jupyter, events, outputarea) {
133133
Jupyter.notebook.kernel &&
134134
Jupyter.notebook.kernel.widget_manager;
135135
if (!manager) {
136-
var msg = 'Error rendering Jupyter widget: missing widget manager';
136+
let msg = 'Error rendering Jupyter widget: missing widget manager';
137137
if (RENDER_SHOULD_THROW) {
138138
throw new Error(msg);
139139
}
@@ -172,7 +172,7 @@ function register_events(Jupyter, events, outputarea) {
172172
});
173173
});
174174
} else {
175-
var msg =
175+
let msg =
176176
'A Jupyter widget could not be displayed because the widget state could not be found. This could happen if the kernel storing the widget is no longer available, or if the widget state was not saved in the notebook. You may be able to create the widget by running the appropriate cells.';
177177
if (RENDER_SHOULD_THROW) {
178178
throw new Error(msg);

0 commit comments

Comments
 (0)