Skip to content

Commit 09a0db5

Browse files
author
Jürgen Hasch
committed
Use base_url in snippets [skip ci]
1 parent a4544ec commit 09a0db5

File tree

1 file changed

+1
-1
lines changed
  • src/jupyter_contrib_nbextensions/nbextensions/snippets

1 file changed

+1
-1
lines changed

src/jupyter_contrib_nbextensions/nbextensions/snippets/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ define([
2323
function load_extension() {
2424
Jupyter.notebook.config.loaded.then(initialize); // trigger loading config parameters
2525

26-
$.getJSON("/nbextensions/snippets/snippets.json", function(data) {
26+
$.getJSON(Jupyter.notebook.base_url+"/nbextensions/snippets/snippets.json", function(data) {
2727
// Add the header as the top option, does nothing on click
2828
var option = $("<option></option>")
2929
.attr("id", "snippet_header")

0 commit comments

Comments
 (0)