Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

Commit 80d27ae

Browse files
committed
fixing for-in lopp usage of properties
1 parent 6c37cdd commit 80d27ae

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/mods/raids.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,12 @@ idrinth.raids = {
405405
return;
406406
}
407407
for (var raidId in idrinth.raids.private) {
408-
idrinth.core.ajax.runHome (
409-
'get-raid-service/' + raidId + '/' + idrinth.raids.private[raidId] + '/',
410-
handle
411-
);
408+
if(idrinth.raids.private.hasOwnProperty (raidId)) {
409+
idrinth.core.ajax.runHome (
410+
'get-raid-service/' + raidId + '/' + idrinth.raids.private[raidId] + '/',
411+
handle
412+
);
413+
}
412414
}
413415
};
414416
if ( !join () && Date.now () - 60000 > idrinth.raids.requested ) {

0 commit comments

Comments
 (0)