Skip to content

Commit 0072d30

Browse files
authored
made it work for remote (public) jupyter notebook
removed 'localhost' from custom.css file path check so that it would work with remote access. Might be some other workarounds without doing this, though.
1 parent 882fbb0 commit 0072d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jupyter_contrib_nbextensions/nbextensions/code_font_size/code_font_size.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define([
1010
var pre_style = null;
1111
for(i = 0; i < document.styleSheets.length; i++){
1212
//if style sheet is custom.css
13-
if(/localhost.*\/custom\/custom\.css/.test(document.styleSheets[i].href)){
13+
if(/.*\/custom\/custom\.css/.test(document.styleSheets[i].href)){
1414
//pre_css now contains the style sheet custom.css
1515
pre_css = document.styleSheets[i];
1616
break;

0 commit comments

Comments
 (0)