2017-10-07 04:25:17 +00:00
|
|
|
import imageDiffHelper from './helpers/index';
|
|
|
|
|
|
|
|
export default () => {
|
|
|
|
// Always pass can-create-note as false because a user
|
|
|
|
// cannot place new badge markers on discussion tab
|
|
|
|
const canCreateNote = false;
|
|
|
|
const renderCommentBadge = true;
|
|
|
|
|
|
|
|
const diffFileEls = document.querySelectorAll('.timeline-content .diff-file.js-image-file');
|
|
|
|
[...diffFileEls].forEach(diffFileEl =>
|
2018-10-24 19:17:03 +00:00
|
|
|
imageDiffHelper.initImageDiff(diffFileEl, canCreateNote, renderCommentBadge),
|
|
|
|
);
|
2017-10-07 04:25:17 +00:00
|
|
|
};
|