Add hotkey to go to next challenge/bonfire from completion modal, keep editor in focus on exiting completion modal, allow for courseware to theoretically work in production and development.
This commit is contained in:
15
public/js/lib/coursewares/iFrameScripts.js
Normal file
15
public/js/lib/coursewares/iFrameScripts.js
Normal file
@@ -0,0 +1,15 @@
|
||||
(function() {
|
||||
var allTestsGood = true;
|
||||
var expect = chai.expect;
|
||||
|
||||
try {
|
||||
eval(parent.allTests);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
allTestsGood = false;
|
||||
} finally {
|
||||
if (allTestsGood) {
|
||||
parent.postMessage('CompleteAwesomeSauce', parent.nodeEnv);
|
||||
}
|
||||
}
|
||||
})();
|
Reference in New Issue
Block a user