remove async & ES6 feature detection

It requires eval and webcrypto got introduced in older Chrome & Firefox versions, so seems superfluous to keep.
This commit is contained in:
El RIDO 2024-11-26 07:01:34 +01:00
parent 6b180ac7b1
commit 6587466a9b
3 changed files with 2 additions and 13 deletions

View file

@ -174,18 +174,6 @@
)) {
return true;
}
// async & ES6 support
try {
async () => {};
} catch (e) {
if (e instanceof SyntaxError) {
return true;
} else {
throw e; // throws CSP error
}
}
return false;
}