Skip to content

Commit

Permalink
fix: contest is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
vdvibhu20 committed May 9, 2024
1 parent b2c1580 commit 28ab2e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/monitorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default Service.extend({
window.addEventListener('monitorersuccess', this.monitorerSuccessEventHandler)
}

if(this.contest.disallowNoFace || contest.disallowTabSwitch || contest.disallowWindowResize || contest.disallowMultipleFaces) {
if(this.contest.disallowNoFace || this.contest.disallowTabSwitch || this.contest.disallowWindowResize || this.contest.disallowMultipleFaces) {
await this.enableRightClickMonitorer()
await this.enableKeyboardMonitorer({ console: true })
}
Expand Down Expand Up @@ -134,7 +134,7 @@ export default Service.extend({

async disableMultipleFacesMonitorer() {
await this.monitorer.disable({ multipleFaces: true })
await this.monitorer.disable({ liveFeed: true })
// await this.monitorer.disable({ liveFeed: true })
},

async disableRightClickMonitorer() {
Expand Down

0 comments on commit 28ab2e9

Please sign in to comment.