@bbn/bbn 1.0.397 → 1.0.398
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/env.d.ts +1 -0
- package/dist/env.js +2 -1
- package/dist/fn/init.js +2 -0
- package/package.json +1 -1
package/dist/env.d.ts
CHANGED
package/dist/env.js
CHANGED
package/dist/fn/init.js
CHANGED
|
@@ -178,6 +178,8 @@ export default function init(cfg, force) {
|
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
+
window.addEventListener('online', function () { return bbn.env.online = true; });
|
|
182
|
+
window.addEventListener('offline', function () { return bbn.env.online = false; });
|
|
181
183
|
bbn.env.isInit = true;
|
|
182
184
|
document.dispatchEvent(new Event("bbninit"));
|
|
183
185
|
if (bbn.env.logging) {
|