From 36c1866f19008f678b45e9ce4c9a15cdd0f17fb0 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sun, 27 Jan 2019 17:47:00 +0100 Subject: [PATCH] chore: fix lint errors --- src/api/web/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/web/index.js b/src/api/web/index.js index 5312469de..71bbfe863 100644 --- a/src/api/web/index.js +++ b/src/api/web/index.js @@ -12,6 +12,7 @@ import express from 'express'; import { combineBaseUrl, getWebProtocol } from '../../lib/utils'; import Search from '../../lib/search'; import { HEADERS, HTTP_STATUS, WEB_TITLE } from '../../lib/constants'; +import { spliceURL } from '../../utils/string'; const { securityIframe } = require('../middleware'); /* eslint new-cap:off */ @@ -52,7 +53,6 @@ module.exports = function(config, auth, storage) { }); }); - function renderHTML(req, res) { const base = combineBaseUrl(getWebProtocol(req.get(HEADERS.FORWARDED_PROTO), req.protocol), req.get('host'), config.url_prefix); const webPage = template