Only iterate through models once (#421)

This commit is contained in:
Richie Bendall 2020-11-22 02:07:13 +13:00 committed by GitHub
parent 72299f99a0
commit 02abeebac3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,9 +87,7 @@ for (const model of usedModels) {
};
}
};
}
for (const model of usedModels) {
const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
styles[bgModel] = {
get() {