Skip to content

Commit

Permalink
fix: emoticon disappeared
Browse files Browse the repository at this point in the history
  • Loading branch information
heycalmdown committed Aug 29, 2018
1 parent 680f0db commit b1841ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export function backgroundImage(section: Section): Section {
imgs.map((_i, el) => {
const img = $(el);
const originalSize = !img.attr('height') && !img.attr('width');
if (!originalSize) return;
const isEmoticon = img.hasClass('emoticon');
if (!originalSize || isEmoticon) return;
section.background = img.data('image-src');
img.remove();
});
Expand Down

0 comments on commit b1841ac

Please sign in to comment.