diff --git a/app.js b/app.js index f898342e..3c547017 100644 --- a/app.js +++ b/app.js @@ -69,7 +69,7 @@ app.use(urlPrefix + '/lib/cityssm-bulma-js', express.static(path.join('node_modu app.use(urlPrefix + '/lib/cityssm-bulma-webapp-js', express.static(path.join('node_modules', '@cityssm', 'bulma-webapp-js'))); app.use(urlPrefix + '/lib/fa', express.static(path.join('node_modules', '@fortawesome', 'fontawesome-free'))); app.use(urlPrefix + '/lib/leaflet', express.static(path.join('node_modules', 'leaflet', 'dist'))); -app.use(urlPrefix + '/lib/randomcolor', express.static(path.join('node_modules', 'randomcolor'))); +app.use(urlPrefix + '/lib/randomcolor/randomColor.js', express.static(path.join('node_modules', 'randomcolor', 'randomColor.js'))); const sessionCookieName = configFunctions.getProperty('session.cookieName'); const FileStoreSession = FileStore(session); app.use(session({ diff --git a/app.ts b/app.ts index 12013c48..dd49e89c 100644 --- a/app.ts +++ b/app.ts @@ -139,8 +139,8 @@ app.use( ) app.use( - urlPrefix + '/lib/randomcolor', - express.static(path.join('node_modules', 'randomcolor')) + urlPrefix + '/lib/randomcolor/randomColor.js', + express.static(path.join('node_modules', 'randomcolor', 'randomColor.js')) ) /* diff --git a/views/_footerA.ejs b/views/_footerA.ejs index 6ad29010..38784fa5 100644 --- a/views/_footerA.ejs +++ b/views/_footerA.ejs @@ -32,7 +32,7 @@ - +