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:
@@ -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' ])),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user