Skip to content

Commit 89b6ad8

Browse files
committed
Fixed failing eslint
1 parent d633281 commit 89b6ad8

File tree

4 files changed

+211
-207
lines changed

4 files changed

+211
-207
lines changed

client-side/common.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ require('/client-side/binary-ajax.js')
99
if (!window.sb) {
1010
window.sb = require('/structure-types.js')
1111
const recursiveRegistry = require('/recursive-registry.js')
12-
for (const key in recursiveRegistry) window.sb[key] = recursiveRegistry[key]
12+
for (const key in recursiveRegistry) {
13+
if ({}.hasOwnProperty.call(recursiveRegistry, key)) window.sb[key] = recursiveRegistry[key]
14+
}
1315
}
1416
else if (!(window.sb instanceof Object)) throw new Error('window.sb is already defined')

0 commit comments

Comments
 (0)