initWebDebug function

void initWebDebug()

Initialize web debug storage.

Implementation

void initWebDebug() {
  // Create window.hiveDebug = {} if it doesn't exist
  if (!_globalThis.hasProperty('hiveDebug'.toJS).toDart) {
    _globalThis.setProperty('hiveDebug'.toJS, _newObject());
  }
  _hiveDebug = _globalThis.getProperty('hiveDebug'.toJS) as JSObject;
}