added error to the $($) blocker
This commit is contained in:
@@ -246,6 +246,9 @@ if(typeof prodOrDev !== 'undefined') {
|
||||
if(!editor.getValue().match(/\$\s*?\(\s*?\$\s*?\)/gi)){
|
||||
safeHTMLRun(false);
|
||||
}
|
||||
else{
|
||||
workerError("Unsafe $($)");
|
||||
}
|
||||
}
|
||||
|
||||
setTimeout(updatePreview, 300);
|
||||
@@ -523,6 +526,9 @@ function bonfireExecute() {
|
||||
if(!editor.getValue().match(/\$\s*?\(\s*?\$\s*?\)/gi) && challengeType === "0") {
|
||||
safeHTMLRun(true);
|
||||
}
|
||||
else{
|
||||
workerError("Unsafe $($)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user