Skip to content

Commit d65c620

Browse files
authored
Fix mathjax URL handling (#153)
1 parent e1962c9 commit d65c620

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

jupyterlab_server/handlers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,9 @@ def get(self, mode = None, workspace = None, tree = None):
9292
mathjax_config = self.settings.get('mathjax_config',
9393
'TeX-AMS_HTML-full,Safe')
9494
# TODO Remove CDN usage.
95-
mathjax_url = self.settings.get('mathjax_url', '')
95+
mathjax_url = self.mathjax_url
9696
if not mathjax_url:
9797
mathjax_url = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js'
98-
elif not urlparse(mathjax_url).scheme:
99-
mathjax_url = ujoin(self.base_url, mathjax_url)
10098

10199
page_config.setdefault('mathjaxConfig', mathjax_config)
102100
page_config.setdefault('fullMathjaxUrl', mathjax_url)

0 commit comments

Comments
 (0)