Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Using 'srcset' attribute instead of 'responsive'.
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonkups committed Sep 29, 2017
1 parent e12d7be commit 17f1574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imageuploadengine.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ export default class ImageUploadEngine extends Plugin {
.join( ', ' );

if ( srcsetAttribute != '' ) {
doc.batch( 'transparent' ).setAttribute( imageElement, 'responsive', {
srcset: srcsetAttribute,
doc.batch( 'transparent' ).setAttribute( imageElement, 'srcset', {
data: srcsetAttribute,
width: maxWidth
} );
}
Expand Down

0 comments on commit 17f1574

Please sign in to comment.