fix: rrweb inject path
This commit is contained in:
@@ -616,9 +616,7 @@ export class RemoteBrowser {
|
|||||||
patchedGetter.toString();`
|
patchedGetter.toString();`
|
||||||
);
|
);
|
||||||
|
|
||||||
await this.context.addInitScript({
|
await this.context.addInitScript({ path: './server/src/browser-management/classes/rrweb-bundle.js' });
|
||||||
path: "./browser-management/classes/rrweb-bundle.js",
|
|
||||||
});
|
|
||||||
|
|
||||||
this.currentPage = await this.context.newPage();
|
this.currentPage = await this.context.newPage();
|
||||||
|
|
||||||
@@ -1618,7 +1616,7 @@ export class RemoteBrowser {
|
|||||||
logger.info("DOM streaming stopped successfully");
|
logger.info("DOM streaming stopped successfully");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**rrweb-bundle
|
||||||
* Terminates the screencast session and closes the remote browser.
|
* Terminates the screencast session and closes the remote browser.
|
||||||
* If an interpretation was running it will be stopped.
|
* If an interpretation was running it will be stopped.
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
@@ -1776,8 +1774,6 @@ export class RemoteBrowser {
|
|||||||
await this.stopScreencast();
|
await this.stopScreencast();
|
||||||
this.currentPage = page;
|
this.currentPage = page;
|
||||||
|
|
||||||
await this.currentPage.addInitScript({ path: './server/src/browser-management/classes/rrweb-bundle.js' });
|
|
||||||
|
|
||||||
await this.setupPageEventListeners(this.currentPage);
|
await this.setupPageEventListeners(this.currentPage);
|
||||||
|
|
||||||
//await this.currentPage.setViewportSize({ height: 400, width: 900 })
|
//await this.currentPage.setViewportSize({ height: 400, width: 900 })
|
||||||
|
|||||||
Reference in New Issue
Block a user