Skip to content

Commit 7ec8268

Browse files
committed
validators: do not find best media for duplicate images
1 parent ed8e3ba commit 7ec8268

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/plugins/validators/sync/15_duplicateLink.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ export default {
7070
var storedLink = linksHrefDict[linkNoProtocol];
7171

7272
if (storedLink) {
73-
74-
if (!storedLink.options && !link.options) {
73+
if (!storedLink.options && !link.options && !/^image\//.test(link.type)) {
7574
var media = findBestMedia(link.media, storedLink.media);
7675
if (media) {
7776
// Keep stored link. Update with better media.

0 commit comments

Comments
 (0)