mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added an error-test
This commit is contained in:
@@ -244,7 +244,11 @@ var Frontpage = {
|
|||||||
},500);
|
},500);
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
document.querySelector(".autocomplete").setAttribute("placeholder", Helper.decodeChannelName(list[i]._id));
|
try {
|
||||||
|
document.querySelector(".autocomplete").setAttribute("placeholder", Helper.decodeChannelName(list[i]._id));
|
||||||
|
} catch(e) {
|
||||||
|
console.log("This is a weird error...");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user