Merge pull request #1725 from mattermost/fix-console-err

Adding error bar message when console error detected
Этот коммит содержится в:
Christopher Speller
2015-12-15 07:07:06 -05:00
родитель 1d4ce0f489 dff586fa74
Коммит 697e901f15
8 изменённых файлов: 50 добавлений и 0 удалений

Просмотреть файл

@@ -85,6 +85,11 @@
type: 'POST',
data: JSON.stringify(l)
});
if (window.mm_config.EnableDeveloper === 'true') {
window.ErrorStore.storeLastError('DEVELOPER MODE: A javascript error has occured. Please use the javascript console to capture and report the error (row: ' + line + ' col: ' + column + ').');
window.ErrorStore.emitChange();
}
}
</script>