Skip to content

Commit 5f5cb87

Browse files
committed
[IIIF-188] Fix lint
1 parent 6f611d7 commit 5f5cb87

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

server.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const REST_BASE_URL = environment.rest.ssrBaseUrl || environment.rest.baseUrl;
9393
const IIIF_ALLOWED_ORIGINS = environment.rest.allowedOrigins || [];
9494

9595
// Assign the DOM window and document objects to the global object
96-
(_window as any).screen = {deviceXDPI: 0, logicalXDPI: 0};
96+
(_window as any).screen = { deviceXDPI: 0, logicalXDPI: 0 };
9797
(global as any).window = _window;
9898
(global as any).document = _window.document;
9999
(global as any).navigator = _window.navigator;
@@ -221,7 +221,7 @@ export function app() {
221221
server.get('/iiif/mirador/index.html', (req, res) => {
222222
const referer = req.headers.referer;
223223

224-
if(referer && !referer.startsWith('/')) {
224+
if (referer && !referer.startsWith('/')) {
225225
try {
226226
const origin = new URL(referer).origin;
227227
if (IIIF_ALLOWED_ORIGINS.includes(origin)) {
@@ -233,7 +233,7 @@ export function app() {
233233
console.info('Headers have been set ', res.getHeader('Access-Control-Allow-Origin'), res.getHeader('Content-Security-Policy'));
234234
}
235235
} catch (error) {
236-
console.error("An error occurred setting security headers in response:", error);
236+
console.error('An error occurred setting security headers in response:', error);
237237
}
238238
}
239239

@@ -683,10 +683,10 @@ function start() {
683683
* The callback function to serve client health check requests
684684
*/
685685
function clientHealthCheck(req, res) {
686-
const isServerHealthy = true;
687-
if (isServerHealthy) {
688-
res.status(200).json({ status: 'UP' });
689-
}
686+
const isServerHealthy = true;
687+
if (isServerHealthy) {
688+
res.status(200).json({ status: 'UP' });
689+
}
690690
}
691691

692692
/*

0 commit comments

Comments
 (0)