Forráskód Böngészése

fix instagram getNextPagePath and remove ”px” from width

Artur Paikin 7 éve
szülő
commit
c5a815a35b
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/plugins/Instagram/index.js

+ 2 - 2
src/plugins/Instagram/index.js

@@ -80,7 +80,7 @@ module.exports = class Instagram extends Plugin {
   }
 
   getItemIcon (item) {
-    return html`<img width="100px" src=${item.images.thumbnail.url}/>`
+    return html`<img width="100" src=${item.images.thumbnail.url}/>`
   }
 
   getItemSubList (item) {
@@ -126,7 +126,7 @@ module.exports = class Instagram extends Plugin {
   }
 
   getNextPagePath () {
-    const { files } = this.uppy.getState()[this.stateId]
+    const { files } = this.getPluginState()
     return `recent?max_id=${this.getItemId(files[files.length - 1])}`
   }