mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-07 05:38:27 +02:00
Replace forEach() with for()
This commit is contained in:
@@ -219,9 +219,10 @@ export class StreamBadges {
|
||||
];
|
||||
|
||||
const $container = CE('div', {class: 'bx-badges'});
|
||||
BADGES.forEach(item => {
|
||||
|
||||
for (const item of BADGES) {
|
||||
if (!item) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
let $badge: HTMLElement;
|
||||
@@ -232,7 +233,7 @@ export class StreamBadges {
|
||||
}
|
||||
|
||||
$container.appendChild($badge);
|
||||
});
|
||||
};
|
||||
|
||||
this.$container = $container;
|
||||
await this.start();
|
||||
|
Reference in New Issue
Block a user