mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
Timeslider: Install an error handler
This commit is contained in:
parent
1e22e0102d
commit
0ca5a3459f
3 changed files with 4 additions and 0 deletions
|
@ -296,6 +296,7 @@ const padutils = {
|
||||||
let globalExceptionHandler = null;
|
let globalExceptionHandler = null;
|
||||||
padutils.setupGlobalExceptionHandler = () => {
|
padutils.setupGlobalExceptionHandler = () => {
|
||||||
if (globalExceptionHandler == null) {
|
if (globalExceptionHandler == null) {
|
||||||
|
require('./vendors/gritter');
|
||||||
globalExceptionHandler = (e) => {
|
globalExceptionHandler = (e) => {
|
||||||
let type;
|
let type;
|
||||||
let err;
|
let err;
|
||||||
|
|
|
@ -29,11 +29,13 @@ require('./vendors/jquery');
|
||||||
const Cookies = require('./pad_utils').Cookies;
|
const Cookies = require('./pad_utils').Cookies;
|
||||||
const randomString = require('./pad_utils').randomString;
|
const randomString = require('./pad_utils').randomString;
|
||||||
const hooks = require('./pluginfw/hooks');
|
const hooks = require('./pluginfw/hooks');
|
||||||
|
const padutils = require('./pad_utils').padutils;
|
||||||
const socketio = require('./socketio');
|
const socketio = require('./socketio');
|
||||||
|
|
||||||
let token, padId, exportLinks, socket, changesetLoader, BroadcastSlider;
|
let token, padId, exportLinks, socket, changesetLoader, BroadcastSlider;
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
|
padutils.setupGlobalExceptionHandler();
|
||||||
$(document).ready(() => {
|
$(document).ready(() => {
|
||||||
// start the custom js
|
// start the custom js
|
||||||
if (typeof customStart === 'function') customStart(); // eslint-disable-line no-undef
|
if (typeof customStart === 'function') customStart(); // eslint-disable-line no-undef
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
for the JavaScript code in this page.|
|
for the JavaScript code in this page.|
|
||||||
*/
|
*/
|
||||||
</script>
|
</script>
|
||||||
|
<script src="../../static/js/basic_error_handler.js?v=<%=settings.randomVersionString%>"></script>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
<meta name="referrer" content="no-referrer">
|
<meta name="referrer" content="no-referrer">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue