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)){
|
if(!editor.getValue().match(/\$\s*?\(\s*?\$\s*?\)/gi)){
|
||||||
safeHTMLRun(false);
|
safeHTMLRun(false);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
workerError("Unsafe $($)");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(updatePreview, 300);
|
setTimeout(updatePreview, 300);
|
||||||
@@ -523,6 +526,9 @@ function bonfireExecute() {
|
|||||||
if(!editor.getValue().match(/\$\s*?\(\s*?\$\s*?\)/gi) && challengeType === "0") {
|
if(!editor.getValue().match(/\$\s*?\(\s*?\$\s*?\)/gi) && challengeType === "0") {
|
||||||
safeHTMLRun(true);
|
safeHTMLRun(true);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
workerError("Unsafe $($)");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user