@webview-bridge/web 1.4.2 → 1.4.3-nightly.0
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/commonjs/index.cjs +4 -0
- package/dist/module/index.mjs +4 -0
- package/package.json +1 -1
package/dist/commonjs/index.cjs
CHANGED
|
@@ -347,6 +347,10 @@ var linkBridge = (options = {
|
|
|
347
347
|
return () => Promise.resolve();
|
|
348
348
|
}
|
|
349
349
|
});
|
|
350
|
+
for (const [eventName, ...args] of window.nativeBatchedEvents ?? []) {
|
|
351
|
+
emitter.emit(eventName, ...args);
|
|
352
|
+
}
|
|
353
|
+
window.nativeBatchedEvents = [];
|
|
350
354
|
onReady?.(proxy);
|
|
351
355
|
return proxy;
|
|
352
356
|
};
|
package/dist/module/index.mjs
CHANGED
|
@@ -317,6 +317,10 @@ var linkBridge = (options = {
|
|
|
317
317
|
return () => Promise.resolve();
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
|
+
for (const [eventName, ...args] of window.nativeBatchedEvents ?? []) {
|
|
321
|
+
emitter.emit(eventName, ...args);
|
|
322
|
+
}
|
|
323
|
+
window.nativeBatchedEvents = [];
|
|
320
324
|
onReady?.(proxy);
|
|
321
325
|
return proxy;
|
|
322
326
|
};
|