diff --git a/server.js b/server.js index a9a3dc7..8ed66cb 100755 --- a/server.js +++ b/server.js @@ -82,12 +82,9 @@ app.get( '/assets/:filename', ( request, response ) => { // Serve 404 pages app.use( ( req, res, next ) => { - if ( req.query.lang == 'en' ) { - res.status( 404 ).sendFile( path.join( __dirname + '/ui/en/errorResponses/404.html' ) ); - } else { - res.status( 404 ).sendFile( path.join( __dirname + '/ui/de/errorResponses/404.html' ) ); - }; + res.status( 404 ).sendFile( path.join( __dirname + '/ui/404.html' ) ); }); +const PORT = process.env.PORT || 8080; -http.createServer( app ).listen( 8080 ); \ No newline at end of file +http.createServer( app ).listen( PORT ); \ No newline at end of file diff --git a/ui/404.html b/ui/404.html index 815f621..2f4e4af 100755 --- a/ui/404.html +++ b/ui/404.html @@ -3,8 +3,8 @@