Skip to content

Commit

Permalink
mcapi.ca is now gameapis.net
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardosnt committed Nov 12, 2017
1 parent b6e72ac commit 231b36a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/mc-player-counter.js
Expand Up @@ -70,7 +70,7 @@ var PlayerCounter = function () {
_this.element.innerHTML = text;
}
};
request.open('GET', 'https://mcapi.ca/query/' + this.ip + '/players');
request.open('GET', 'https://use.gameapis.net/mc/query/players/' + this.ip);
request.send();
}
}]);
Expand Down
2 changes: 1 addition & 1 deletion dist/mc-player-counter.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/mc-player-counter.js
Expand Up @@ -50,13 +50,13 @@ class PlayerCounter {
this.element.innerHTML = text;
}
};
request.open('GET', `https://mcapi.ca/query/${this.ip}/players`);
request.open('GET', `https://use.gameapis.net/mc/query/players/${this.ip}`);
request.send();
}
}

const onDomLoad = function() {
const elements = document.querySelectorAll('[data-playercounter-ip]');
const elements = document.querySelectorAll('[data-playercounter-ip]');

for (let i = 0; i < elements.length; i++) {
const element = elements[i];
Expand Down

0 comments on commit 231b36a

Please sign in to comment.