diff --git a/src/node/types/SettingsObj.ts b/src/node/types/SettingsObj.ts index d256c2573..3a409ec63 100644 --- a/src/node/types/SettingsObj.ts +++ b/src/node/types/SettingsObj.ts @@ -110,4 +110,5 @@ export type SettingsObj = { importMaxFileSize: number; enableAdminUITests: boolean; lowerCasePadIds: boolean; + randomVersionString: string; } diff --git a/src/node/utils/Settings.ts b/src/node/utils/Settings.ts index 873128779..f84f6b9b8 100644 --- a/src/node/utils/Settings.ts +++ b/src/node/utils/Settings.ts @@ -403,6 +403,7 @@ export const settings: SettingsObj = { * e.g. /p/EtHeRpAd to /p/etherpad */ lowerCasePadIds: false, + randomVersionString: randomString(4) } /* Root path of the installation */ diff --git a/src/templates/index.html b/src/templates/index.html index 4d08312f9..7df4fd1bc 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -1,5 +1,5 @@ <% - var settings = require("ep_etherpad-lite/node/utils/Settings"); +var settings = require("ep_etherpad-lite/node/utils/Settings").settings %> diff --git a/src/templates/pad.html b/src/templates/pad.html index c25ebcf9a..5f7fa3b7a 100644 --- a/src/templates/pad.html +++ b/src/templates/pad.html @@ -1,5 +1,5 @@ <% - import {settings} from 'ep_etherpad-lite/node/utils/Settings'; + var settings = require("ep_etherpad-lite/node/utils/Settings").settings , langs = require("ep_etherpad-lite/node/hooks/i18n").availableLangs , pluginUtils = require('ep_etherpad-lite/static/js/pluginfw/shared') ; diff --git a/src/templates/timeslider.html b/src/templates/timeslider.html index ee45f4575..7cad47ee6 100644 --- a/src/templates/timeslider.html +++ b/src/templates/timeslider.html @@ -1,5 +1,5 @@ <% - var settings = require("ep_etherpad-lite/node/utils/Settings") + var settings = require("ep_etherpad-lite/node/utils/Settings").settings , langs = require("ep_etherpad-lite/node/hooks/i18n").availableLangs %>