Skip to content

proctoring.js isCameraAllowed definition causes redeclaration error with cachejs enabled #224

@35grain

Description

@35grain

Prior to 062b530, the variable decalaration in proctoring.js was:

var isCameraAllowed = false;

In newer versions, let is used:

let isCameraAllowed = false;

This, however, causes the following error on our site when the cachejs setting in Moodle is turned on:

Uncaught SyntaxError: Indentifier 'isCameraAllowed' has already been declared.

As far as I can tell, the console error appears in all (authenticated) views.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions