Skip to content

Commit d633281

Browse files
committed
Can now use recursiveRegistry on client-side
1 parent 65bd7ec commit d633281

File tree

4 files changed

+255
-251
lines changed

4 files changed

+255
-251
lines changed

client-side/common.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@ assert.instanceOf(window.ArrayBuffer, Function)
66
assert.instanceOf(window.Uint8Array, Function)
77
assert.instanceOf(window.Symbol, Function)
88
require('/client-side/binary-ajax.js')
9-
if (!window.sb) window.sb = require('/structure-types.js')
9+
if (!window.sb) {
10+
window.sb = require('/structure-types.js')
11+
const recursiveRegistry = require('/recursive-registry.js')
12+
for (const key in recursiveRegistry) window.sb[key] = recursiveRegistry[key]
13+
}
1014
else if (!(window.sb instanceof Object)) throw new Error('window.sb is already defined')

0 commit comments

Comments
 (0)