added error to the $($) blocker

This commit is contained in:
benmcmahon100
2015-08-25 21:07:36 +01:00
parent 8509197b6d
commit c9113faee5

View File

@@ -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 $($)");
}
}
}