Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/jupyter_notebook_gist/static/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ define([
var port = loc.port;

var base = proto + "//" + host;
if (parseInt(port) != 80) {
if ((proto == 'http' && parseInt(port) != 80) || (proto == 'https' && parseInt(port) != 443)) {
base += ":" + port;
}
return base;
Expand Down Expand Up @@ -100,7 +100,7 @@ define([
force_download: force_download
}
utils.ajax({
url: "/download_notebook",
url: utils.url_path_join(utils.get_body_data("baseUrl"), "/download_notebook"),
type: "POST",
dataType: "json",
data: JSON.stringify(nb_info)
Expand Down
2 changes: 1 addition & 1 deletion src/jupyter_notebook_gist/static/notebook-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ define([
// Characters like # get decoded by the github API and will mess up
// getting the file path on the server if we use URI percent encoding,
// so we use base64 instead
var nb_path = window.btoa(Jupyter.notebook.base_url + Jupyter.notebook.notebook_path);
var nb_path = window.btoa(Jupyter.notebook.notebook_path);

// Start OAuth dialog
window.open("https://github.com/login/oauth/authorize?client_id=" + github_client_id +
Expand Down
2 changes: 1 addition & 1 deletion src/jupyter_notebook_gist/static/tree-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ define([
"load all user gists",
"fa-list",
common.load_all_user_gists,
"load_add_user_gists");
"load_all_user_gists");
}
});
}
Expand Down