Fix base64 image detection in pads

pull/1/head
yflory 3 years ago
parent 04fc838ef3
commit 5d156dd346

@ -1115,7 +1115,7 @@ define([
framework._.sfCommon.isPadStored(function(err, val) { framework._.sfCommon.isPadStored(function(err, val) {
if (!val) { return; } if (!val) { return; }
var b64images = $inner.find('img[src^="data:image"]:not(.cke_reset)'); var b64images = $inner.find('img[src^="data:image"]:not(.cke_reset), img[src^="data:application/octet-stream"]:not(.cke_reset)');
if (b64images.length && framework._.sfCommon.isLoggedIn()) { if (b64images.length && framework._.sfCommon.isLoggedIn()) {
var no = h('button.cp-corner-cancel', Messages.cancel); var no = h('button.cp-corner-cancel', Messages.cancel);
var yes = h('button.cp-corner-primary', Messages.ok); var yes = h('button.cp-corner-primary', Messages.ok);

Loading…
Cancel
Save