- 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

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