@forge/bridge
5.13.0-next.15.13.0-next.2
out/view/emitReadyEvent.js~
out/view/emitReadyEvent.jsModified+2−7
Index: package/out/view/emitReadyEvent.js
===================================================================
--- package/out/view/emitReadyEvent.js
+++ package/out/view/emitReadyEvent.js
@@ -3,23 +3,18 @@
exports.emitReadyEvent = void 0;
const events_1 = require("../events/events");
const view_1 = require("./view");
const bridge_1 = require("../bridge");
-const errors_1 = require("../errors");
const callBridge = (0, bridge_1.getCallBridge)();
const EXTENSION_READY = 'EXTENSION_READY';
const emitReadyEvent = async () => {
const context = await view_1.view.getContext();
await events_1.events.emit(EXTENSION_READY, {
localId: context.localId
});
try {
- const success = await callBridge('emitReadyEvent');
- if (success === false) {
- throw new errors_1.BridgeAPIError('Unable to emit ready event.');
- }
+ await callBridge('emitReadyEvent');
}
- catch (err) {
- throw new errors_1.BridgeAPIError('Unable to emit ready event.');
+ catch {
}
};
exports.emitReadyEvent = emitReadyEvent;