We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbc80d0 commit f2d5b01Copy full SHA for f2d5b01
lib/plugins/validators/async/22_imageSize.js
@@ -98,6 +98,9 @@ export default {
98
99
// Special case: add rel image for image file with specific size.
100
if (link.rel.indexOf(CONFIG.R.image) === -1 && link.rel.indexOf(CONFIG.R.file) > -1 && data.width >= 100 && data.height >= 100) {
101
+ if (!Array.isArray(link.rel)) {
102
+ link.rel = [link.rel];
103
+ }
104
link.rel.push(CONFIG.R.image);
105
}
106
0 commit comments