Added an error-test

This commit is contained in:
Kasper Rynning-Tønnesen
2018-08-29 17:54:43 +02:00
parent 1c0294bfb6
commit 5610382c01

View File

@@ -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...");
}
} }
}); });
}; };