mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
static require cryptofill for Edge
This commit is contained in:
@@ -46,7 +46,7 @@ async function checkCrypto() {
|
|||||||
return true;
|
return true;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
try {
|
try {
|
||||||
await import('./cryptofill');
|
require('./cryptofill');
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -54,8 +54,6 @@ module.exports = function(app) {
|
|||||||
return `'nonce-${req.cspNonce}'`;
|
return `'nonce-${req.cspNonce}'`;
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
styleSrc: ["'self'", 'https://code.cdn.mozilla.net'],
|
|
||||||
fontSrc: ["'self'", 'https://code.cdn.mozilla.net'],
|
|
||||||
formAction: ["'none'"],
|
formAction: ["'none'"],
|
||||||
frameAncestors: ["'none'"],
|
frameAncestors: ["'none'"],
|
||||||
objectSrc: ["'none'"],
|
objectSrc: ["'none'"],
|
||||||
|
|||||||
Reference in New Issue
Block a user