]> cat aescling's git repositories - mastodon.git/commit
Refactor resizeImage method (#7236)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Mon, 23 Apr 2018 07:15:51 +0000 (16:15 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 23 Apr 2018 07:15:51 +0000 (09:15 +0200)
commit0758b00bfddf4a2c845d0d611e50717a268fd48a
treed196a207536dab549adb201b5f8201d8f38af8e1
parent660cb058e18f8607a0044b5a89614e1caeb07ed9
Refactor resizeImage method (#7236)

- Use URL.createObjectURL (replace from FileReader)
- Use HTMLCanvasElement.prototype.toBlob
  (replace from HTMLCanvasElement.prototype.toDataURL)
- Use Promise (replace callback interface)
app/javascript/mastodon/actions/compose.js
app/javascript/mastodon/actions/push_notifications/registerer.js
app/javascript/mastodon/base_polyfills.js
app/javascript/mastodon/load_polyfills.js
app/javascript/mastodon/utils/__tests__/base64-test.js [new file with mode: 0644]
app/javascript/mastodon/utils/base64.js [new file with mode: 0644]
app/javascript/mastodon/utils/resize_image.js [new file with mode: 0644]