1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-09 20:52:39 +01:00

static require cryptofill for Edge

This commit is contained in:
Danny Coates 2019-02-21 11:21:06 -08:00
parent 6fd3019aba
commit c146c584f6
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
2 changed files with 1 additions and 3 deletions

View File

@ -46,7 +46,7 @@ async function checkCrypto() {
return true;
} catch (err) {
try {
await import('./cryptofill');
require('./cryptofill');
return true;
} catch (e) {
return false;

View File

@ -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'"],