chore: change rrweb script path

This commit is contained in:
Rohit
2025-06-23 23:39:09 +05:30
parent bb387d8759
commit 98f9b6def1

View File

@@ -1256,7 +1256,7 @@ export class RemoteBrowser {
this.currentPage = await this.context.newPage();
await this.currentPage.addInitScript({ path: './browser-management/classes/rrweb-bundle.js' });
await this.currentPage.addInitScript({ path: './server/src/browser-management/classes/rrweb-bundle.js' });
await this.setupPageEventListeners(this.currentPage);
@@ -2378,7 +2378,7 @@ export class RemoteBrowser {
await this.stopScreencast();
this.currentPage = page;
await this.currentPage.addInitScript({ path: './browser-management/classes/rrweb-bundle.js' });
await this.currentPage.addInitScript({ path: './server/src/browser-management/classes/rrweb-bundle.js' });
await this.setupPageEventListeners(this.currentPage);
@@ -2412,7 +2412,7 @@ export class RemoteBrowser {
await this.currentPage?.close();
this.currentPage = newPage;
if (this.currentPage) {
await this.currentPage.addInitScript({ path: './browser-management/classes/rrweb-bundle.js' });
await this.currentPage.addInitScript({ path: './server/src/browser-management/classes/rrweb-bundle.js' });
await this.setupPageEventListeners(this.currentPage);