Skip to content

Commit

Permalink
* WINDOW_RESIZED -> WINDOWRESIZED
Browse files Browse the repository at this point in the history
* remove details argument from handleWindowMoveFault
* set windowMove:false in resetmessages
  • Loading branch information
vdvibhu20 committed May 17, 2024
1 parent 070c06a commit 87e013e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/services/monitorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export default Service.extend({
this.set('faultMessages', {
tabSwitch: false,
windowResize: false,
windowMove: false,
noFace: false,
multipleFace: false
})
Expand All @@ -175,7 +176,7 @@ export default Service.extend({

switch(e.detail.code) {
case "TAB_SWITCHED": await this.handleTabSwitchFault(); break;
case "WINDOW_RESIZED": await this.handleWindowResizeFault(e.detail); break;
case "WINDOWRESIZED": await this.handleWindowResizeFault(e.detail); break;
case "WINDOW_MOVED": await this.handleWindowMoveFault(); break;
case "NO_FACE_DETECTED": await this.handleNoFaceFault(e.detail);
this.set('oneFaceDetected', false); break;
Expand Down Expand Up @@ -231,7 +232,7 @@ export default Service.extend({
await this.store.findRecord('contest-attempt', currentAttempt.id)
}
},
async handleWindowMoveFault(details) {
async handleWindowMoveFault() {
this.set('faultMessages.windowMove', true)
this.set('faultTrigger', true)

Expand Down

0 comments on commit 87e013e

Please sign in to comment.