Merge pull request #1725 from mattermost/fix-console-err
Adding error bar message when console error detected
Этот коммит содержится в:
@@ -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>
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user