From c146c584f69970890a77a279e540e20833990ed0 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Thu, 21 Feb 2019 11:21:06 -0800 Subject: [PATCH] static require cryptofill for Edge --- app/capabilities.js | 2 +- server/routes/index.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/capabilities.js b/app/capabilities.js index 55162f40..4c33ce27 100644 --- a/app/capabilities.js +++ b/app/capabilities.js @@ -46,7 +46,7 @@ async function checkCrypto() { return true; } catch (err) { try { - await import('./cryptofill'); + require('./cryptofill'); return true; } catch (e) { return false; diff --git a/server/routes/index.js b/server/routes/index.js index ce6d6f52..3fd9f045 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -54,8 +54,6 @@ module.exports = function(app) { return `'nonce-${req.cspNonce}'`; } ], - styleSrc: ["'self'", 'https://code.cdn.mozilla.net'], - fontSrc: ["'self'", 'https://code.cdn.mozilla.net'], formAction: ["'none'"], frameAncestors: ["'none'"], objectSrc: ["'none'"],