Timeslider: Install an error handler

This commit is contained in:
Richard Hansen 2021-08-02 19:57:33 -04:00
parent 1e22e0102d
commit 0ca5a3459f
3 changed files with 4 additions and 0 deletions

View file

@ -29,11 +29,13 @@ require('./vendors/jquery');
const Cookies = require('./pad_utils').Cookies;
const randomString = require('./pad_utils').randomString;
const hooks = require('./pluginfw/hooks');
const padutils = require('./pad_utils').padutils;
const socketio = require('./socketio');
let token, padId, exportLinks, socket, changesetLoader, BroadcastSlider;
const init = () => {
padutils.setupGlobalExceptionHandler();
$(document).ready(() => {
// start the custom js
if (typeof customStart === 'function') customStart(); // eslint-disable-line no-undef