1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 20:42:40 +00:00

Webready unified into a getter

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-04-07 09:53:33 -07:00
parent e783e92029
commit eb2081ce9e
2 changed files with 6 additions and 3 deletions

View File

@@ -113,11 +113,12 @@ module.exports = exports = class Asset extends File {
return this;
}
webready () {
const { type, name, sizes } = this;
get webready () {
const { type, name, url, sizes } = this;
return {
type,
name,
url,
sizes: sizes.map((s) => pick(s, [ 'url', 'width', 'height' ])),
};
}