Allow Vue devtools in production

This commit is contained in:
Pavel Djundik 2018-09-14 18:44:26 +03:00
parent 7b3f7d1c59
commit 446ad6a5f4

View File

@ -53,6 +53,11 @@ const vueApp = new Vue({
},
});
Vue.config.errorHandler = function(e) {
console.error(e); // eslint-disable-line
vueApp.currentUserVisibleError = `Vue error: ${e.message}. Please check devtools and report it in #thelounge`;
};
function findChannel(id) {
for (const network of vueApp.networks) {
for (const channel of network.channels) {