Skip to content

Commit 87e013e

Browse files
committed
* WINDOW_RESIZED -> WINDOWRESIZED
* remove details argument from handleWindowMoveFault * set windowMove:false in resetmessages
1 parent 070c06a commit 87e013e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/services/monitorer.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export default Service.extend({
163163
this.set('faultMessages', {
164164
tabSwitch: false,
165165
windowResize: false,
166+
windowMove: false,
166167
noFace: false,
167168
multipleFace: false
168169
})
@@ -175,7 +176,7 @@ export default Service.extend({
175176

176177
switch(e.detail.code) {
177178
case "TAB_SWITCHED": await this.handleTabSwitchFault(); break;
178-
case "WINDOW_RESIZED": await this.handleWindowResizeFault(e.detail); break;
179+
case "WINDOWRESIZED": await this.handleWindowResizeFault(e.detail); break;
179180
case "WINDOW_MOVED": await this.handleWindowMoveFault(); break;
180181
case "NO_FACE_DETECTED": await this.handleNoFaceFault(e.detail);
181182
this.set('oneFaceDetected', false); break;
@@ -231,7 +232,7 @@ export default Service.extend({
231232
await this.store.findRecord('contest-attempt', currentAttempt.id)
232233
}
233234
},
234-
async handleWindowMoveFault(details) {
235+
async handleWindowMoveFault() {
235236
this.set('faultMessages.windowMove', true)
236237
this.set('faultTrigger', true)
237238

0 commit comments

Comments
 (0)