Skip to content

Commit 013894f

Browse files
Prevent crash on es6
1 parent 26f03e1 commit 013894f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/js/locking.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { app } from "../../../scripts/app.js";
55
const LOCKED = Symbol();
66

77
function lockArray(arr, isLocked) {
8+
if (!Array.isArray(arr)) return; // Prevent crash on es6
89
const v = [];
910

1011
for (let i = 0; i < 2; i++) {

0 commit comments

Comments
 (0)