@netless/window-manager 0.4.0-canary.28 → 0.4.0-canary.29
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/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/AppContext.ts +4 -1
package/package.json
CHANGED
package/src/AppContext.ts
CHANGED
@@ -152,7 +152,10 @@ export class AppContext<TAttributes = any, TMagixEventPayloads = any, TAppOption
|
|
152
152
|
}
|
153
153
|
|
154
154
|
/** Dispatch events to other clients (and self). */
|
155
|
-
public dispatchMagixEvent: MagixEventDispatcher<TMagixEventPayloads> = (
|
155
|
+
public dispatchMagixEvent: MagixEventDispatcher<TMagixEventPayloads> = (...args) => {
|
156
|
+
// can't dispatch events on replay mode
|
157
|
+
return this.manager.room?.dispatchMagixEvent(...args);
|
158
|
+
}
|
156
159
|
|
157
160
|
/** Listen to events from others clients (and self messages). */
|
158
161
|
public addMagixEventListener: MagixEventAddListener<TMagixEventPayloads> = (event, handler, options) => {
|