From 94c77d103459357f8c6a624979528b0f3b12a176 Mon Sep 17 00:00:00 2001 From: Sam Macbeth Date: Fri, 3 Nov 2023 14:24:40 +0100 Subject: [PATCH] Fix lint --- privacy-protections/surrogates/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/privacy-protections/surrogates/main.js b/privacy-protections/surrogates/main.js index 1cfdbf3..fe944b7 100644 --- a/privacy-protections/surrogates/main.js +++ b/privacy-protections/surrogates/main.js @@ -49,7 +49,7 @@ function checkSurrogate () { } const surrogates = { - 'head': { + head: { notes: 'Loading surrogate in ', load: () => Promise.resolve(checkSurrogate()), // included in the html cleanUp: () => { @@ -119,7 +119,7 @@ const surrogates = { } }; -async function injectSurrogate(testData) { +async function injectSurrogate (testData) { return new Promise((resolve, reject) => { const s = document.createElement('script'); @@ -143,13 +143,13 @@ async function injectSurrogate(testData) { s.src = testData.url; document.body.appendChild(s); - }) + }); } (async function loadSurrogates () { for (const [name, testData] of Object.entries(surrogates)) { if (testData.url) { - await injectSurrogate(testData) + await injectSurrogate(testData); } else { testData.load().then(result => { testData.test = () => result;