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

Commit 3433daa

Browse files
committed
making ! less confusing I hope
1 parent cb8abc7 commit 3433daa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/mods/observer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ idrinth.observer = {
4545
* @returns {Boolean}
4646
*/
4747
var correctServer = function(href, isWorld) {
48-
return (!href.match ( 'serverid=2' )) !== isWorld;
48+
if (href.match ( 'serverid=2' )) {
49+
return isWorld;
50+
}
51+
return !isWorld;
4952
};
5053
if(!href || !href.match ( /action_type=raidhelp/ )) {
5154
return;

0 commit comments

Comments
 (0)