Skip to content

Commit b630c06

Browse files
committed
[IIIF-188] Fix lint
1 parent 48a7db4 commit b630c06

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

server.ts

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

9393
// Assign the DOM window and document objects to the global object
94-
(_window as any).screen = {deviceXDPI: 0, logicalXDPI: 0};
94+
(_window as any).screen = { deviceXDPI: 0, logicalXDPI: 0 };
9595
(global as any).window = _window;
9696
(global as any).document = _window.document;
9797
(global as any).navigator = _window.navigator;
@@ -241,7 +241,7 @@ export function app() {
241241
server.get('/iiif/mirador/index.html', (req, res) => {
242242
const referer = req.headers.referer;
243243

244-
if(referer && !referer.startsWith('/')) {
244+
if (referer && !referer.startsWith('/')) {
245245
try {
246246
const origin = new URL(referer).origin;
247247
if (IIIF_ALLOWED_ORIGINS.includes(origin)) {
@@ -253,7 +253,7 @@ export function app() {
253253
console.info('Headers have been set ', res.getHeader('Access-Control-Allow-Origin'), res.getHeader('Content-Security-Policy'));
254254
}
255255
} catch (error) {
256-
console.error("An error occurred setting security headers in response:", error.message);
256+
console.error('An error occurred setting security headers in response:', error.message);
257257
}
258258
}
259259

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

691691
/*

0 commit comments

Comments
 (0)