Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Commit 97bd51d

Browse files
committed
fix(*): resolves ff history bug
1 parent f1bc460 commit 97bd51d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: src/participant.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ export class Participant extends EventEmitter {
256256
};
257257

258258
const ws = (this.websocket = new WebSocket(appendQueryString(options.socketAddress, qs)));
259-
this.frame.src = options.contentAddress;
259+
// resolves issue with FireFox storing iframe address assignment in browswer history
260+
this.frame.contentWindow.location!.replace(options.contentAddress);
260261
this.frame.addEventListener('load', this.onFrameLoad);
261262

262263
ws.addEventListener('message', data => {

Diff for: src/rpc.ts

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ export function objToError(obj: { code: number; message: string; path?: string[]
5959
* in tests.
6060
*/
6161
export interface IPostable {
62+
location?: {
63+
replace(address: string): void;
64+
}
6265
postMessage(data: any, targetOrigin: string): void;
6366
}
6467

0 commit comments

Comments
 (0)