@@ -24,7 +24,6 @@ import * as express from 'express';
2424import * as ejs from 'ejs' ;
2525import * as compression from 'compression' ;
2626import * as expressStaticGzip from 'express-static-gzip' ;
27- import * as domino from 'domino-ext' ;
2827/* eslint-enable import/no-namespace */
2928import axios from 'axios' ;
3029import LRU from 'lru-cache' ;
@@ -85,20 +84,10 @@ let anonymousCache: LRU<string, any>;
8584// extend environment with app config for server
8685extendEnvironmentWithAppConfig ( environment , appConfig ) ;
8786
88- // Create a DOM window object based on the template
89- const _window = domino . createWindow ( indexHtml ) ;
90-
9187// The REST server base URL
9288const REST_BASE_URL = environment . rest . ssrBaseUrl || environment . rest . baseUrl ;
9389
9490const IIIF_ALLOWED_ORIGINS = environment . rest . allowedOrigins || [ ] ;
95-
96- // Assign the DOM window and document objects to the global object
97- ( _window as any ) . screen = { deviceXDPI : 0 , logicalXDPI : 0 } ;
98- ( global as any ) . window = _window ;
99- ( global as any ) . document = _window . document ;
100- ( global as any ) . navigator = _window . navigator ;
101-
10291// The Express app is exported so that it can be used by serverless Functions.
10392export function app ( ) {
10493
0 commit comments