We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9c9c3a + f0ee02f commit 32a2932Copy full SHA for 32a2932
notebook/static/notebook/js/menubar.js
@@ -172,16 +172,15 @@ define([
172
this.element.find('#download_ipynb').click(function () {
173
var base_url = that.notebook.base_url;
174
var notebook_path = utils.encode_uri_components(that.notebook.notebook_path);
175
- var w = window.open('');
176
var url = utils.url_path_join(
177
base_url, 'files', notebook_path
178
) + '?download=1';
179
if (that.notebook.dirty && that.notebook.writable) {
180
that.notebook.save_notebook().then(function() {
181
- w.location = url;
+ that._new_window(url);
182
});
183
} else {
184
185
}
186
187
0 commit comments