catch diffdom errors and plow through

pull/1/head
ansuz 7 years ago
parent 767027b237
commit 0a99478d9f

@ -83,7 +83,7 @@ define([
var c = Slide.content; var c = Slide.content;
var m = '<span class="cp-app-slide-container"><span class="'+slideClass+'">'+DiffMd.render(c).replace(separatorReg, '</span></span><span class="cp-app-slide-container"><span class="'+slideClass+'">')+'</span></span>'; var m = '<span class="cp-app-slide-container"><span class="'+slideClass+'">'+DiffMd.render(c).replace(separatorReg, '</span></span><span class="cp-app-slide-container"><span class="'+slideClass+'">')+'</span></span>';
DiffMd.apply(m, $content); try { DiffMd.apply(m, $content); } catch (e) { return console.error(e); }
var length = getNumberOfSlides(); var length = getNumberOfSlides();
$modal.find('style.cp-app-slide-style').remove(); $modal.find('style.cp-app-slide-style').remove();

Loading…
Cancel
Save