Skip to content

Commit cd14861

Browse files
authored
Merge pull request #1212 from juhasch/fix/snippets
Use base_url in snippets
2 parents 7be65b4 + 2321200 commit cd14861

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)