diff --git a/src/node/hooks/express/specialpages.ts b/src/node/hooks/express/specialpages.ts index 2c1286f40..3a6877228 100644 --- a/src/node/hooks/express/specialpages.ts +++ b/src/node/hooks/express/specialpages.ts @@ -183,7 +183,7 @@ const handleLiveReload = async (args: any, padString: string, timeSliderString: // can be removed when require-kernel is dropped res.header('Feature-Policy', 'sync-xhr \'self\''); - const content = eejs.require('ep_etherpad-lite/templates/pad.html', { + const content = eejs.require('ep_etherpad-lite/templates/timeslider.html', { req, toolbar, isReadOnly, diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js index 9a065a973..8d8604b91 100644 --- a/src/static/js/timeslider.js +++ b/src/static/js/timeslider.js @@ -31,7 +31,7 @@ const randomString = require('./pad_utils').randomString; const hooks = require('./pluginfw/hooks'); const padutils = require('./pad_utils').padutils; const socketio = require('./socketio'); - +import html10n from '../js/vendors/html10n' let token, padId, exportLinks, socket, changesetLoader, BroadcastSlider; const init = () => { diff --git a/src/static/js/vendors/html10n.ts b/src/static/js/vendors/html10n.ts index 6167a8541..db9cf871d 100644 --- a/src/static/js/vendors/html10n.ts +++ b/src/static/js/vendors/html10n.ts @@ -483,7 +483,6 @@ export class Html10n { }) this.build(langs, (er: null, translations: Map) =>{ - console.log("Translations are", translations) this.translations = translations this.translateElement(translations) this.mt.trigger('localized') @@ -852,7 +851,6 @@ class Loader { if (xhr.readyState == 4) { if (xhr.status == 200 || xhr.status === 0) { const data = JSON.parse(xhr.responseText); - console.log("Data is", data) this.cache.set(href, data) // Pass on the contents for parsing this.parse(lang, href, data, callback) @@ -972,7 +970,6 @@ class Loader { return } - console.log("Setting lang", lang) this.langs.set(lang,data[lang]) // TODO: Also store accompanying langs callback()