},
},
mounted: function() {
+ if (assessment.mode == "open")
+ return; //no security needed in open mode
window.addEventListener("keydown", e => {
// If F12 or ctrl+shift (ways to access devtools)
if (e.keyCode == 123 || (e.ctrlKey && e.shiftKey))
Object.defineProperty(div, "id", {
get: () => {
clearInterval(devtoolsLoop);
- if (assessment.mode != "open")
- {
- if (this.stage == 2)
- this.endAssessment();
- document.location.href = "/nodevtools";
- }
+ if (this.stage == 2)
+ this.endAssessment();
+ document.location.href = "/nodevtools";
}
});
},