- Fixed arrow functions in class error

This commit is contained in:
Alexis
2020-06-14 16:13:42 +02:00
parent 3a375dae60
commit 5c6eca8e10
6 changed files with 8 additions and 45 deletions

View File

@@ -164,7 +164,7 @@ class VariableRepository {
}
// Check if object is null
isEmptyObject = (obj) => {
isEmptyObject(obj) {
if (Object.keys(obj).length === 0 && obj.constructor === Object) {
return true
} else {
@@ -173,7 +173,7 @@ class VariableRepository {
}
// Check if script injection attempt
isXSSAttempt = (string) => {
isXSSAttempt(string) {
if (regexXSS.test(string)) {
return true
} else {