Skip to content

Commit

Permalink
WIP Fix jupyter#3182: use unique image attachment key to allow multip…
Browse files Browse the repository at this point in the history
…le image paste per cell

WIP because it needs to GC the attachments???
  • Loading branch information
ihnorton committed Aug 3, 2018
1 parent b94cc44 commit 55687c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebook/static/notebook/js/textcell.js
Expand Up @@ -354,9 +354,9 @@ define([
// We generate names for blobs
var key;
if (blob.name !== undefined) {
key = encodeURIandParens(blob.name);
key = utils.uuid() + '_' + encodeURIandParens(blob.name);
} else {
key = '_auto_' + Object.keys(that.attachments).length;
key = utils.uuid() +'_auto_' + Object.keys(that.attachments).length;
}

reader.onloadend = function() {
Expand Down

0 comments on commit 55687c2

Please sign in to comment.