Skip to content

Commit bb8f33c

Browse files
author
Trollhunters501PC
authored
Arreglar error de CreadorCraftLan API
1 parent fd89d4c commit bb8f33c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Games/CreadorCraftLanAPI.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ window.CreadorCraftLanAPI = class CreadorCraftLanAPI {
1414
#eventListenersclose = [];
1515
#eventListenerserror = [];
1616
candidates = [];
17-
async static createInicializer(){
17+
static async createInicializer(){
1818
let instance = new window.CreadorCraftLanAPI(true);
1919
let jsonres;
2020
try{
@@ -30,7 +30,7 @@ window.CreadorCraftLanAPI = class CreadorCraftLanAPI {
3030
instance: instance
3131
};
3232
}
33-
async static createResponder(offer){
33+
static async createResponder(offer){
3434
let instance = new window.CreadorCraftLanAPI(false);
3535
let jsonres;
3636
try{
@@ -125,6 +125,7 @@ window.CreadorCraftLanAPI = class CreadorCraftLanAPI {
125125
}
126126
}
127127
addEventListener(eventName, listener){
128+
eventName = eventName.toLowerCase();
128129
if (!this["#eventListeners"+eventName]) {
129130
console.warn(this.#prefix+"No Existe el evento '"+eventName+"'");
130131
return;

0 commit comments

Comments
 (0)