Skip to content

Commit 2702ed1

Browse files
author
FrancescoMauto
committed
[DSC-2400] Porting of remove domino commit
1 parent b6d0186 commit 2702ed1

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
"date-fns": "^2.29.3",
116116
"date-fns-tz": "^1.3.7",
117117
"deepmerge": "^4.3.1",
118-
"domino-ext": "^2.1.4",
119118
"ejs": "^3.1.10",
120119
"express": "^4.21.2",
121120
"express-rate-limit": "^5.1.3",

server.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import * as express from 'express';
2424
import * as ejs from 'ejs';
2525
import * as compression from 'compression';
2626
import * as expressStaticGzip from 'express-static-gzip';
27-
import * as domino from 'domino-ext';
2827
/* eslint-enable import/no-namespace */
2928
import axios from 'axios';
3029
import LRU from 'lru-cache';
@@ -85,20 +84,10 @@ let anonymousCache: LRU<string, any>;
8584
// extend environment with app config for server
8685
extendEnvironmentWithAppConfig(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
9288
const REST_BASE_URL = environment.rest.ssrBaseUrl || environment.rest.baseUrl;
9389

9490
const 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.
10392
export function app() {
10493

0 commit comments

Comments
 (0)