Merge branch 'develop' into smart-list
This commit is contained in:
@@ -1654,6 +1654,8 @@ export class RemoteBrowser {
|
|||||||
this.networkRequestTimeout = null;
|
this.networkRequestTimeout = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.pendingNetworkRequests = [];
|
||||||
|
|
||||||
if (this.client) {
|
if (this.client) {
|
||||||
try {
|
try {
|
||||||
await this.client.send("DOM.disable");
|
await this.client.send("DOM.disable");
|
||||||
@@ -1666,7 +1668,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>}
|
||||||
|
|||||||
@@ -492,7 +492,8 @@ const handleChangeUrl = async (activeBrowser: RemoteBrowser, page: Page, url: st
|
|||||||
await generator.onChangeUrl(url, page);
|
await generator.onChangeUrl(url, page);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await page.goto(url, { waitUntil: "networkidle", timeout: 100000 });
|
await page.goto(url, { waitUntil: "domcontentloaded", timeout: 30000 });
|
||||||
|
await page.waitForTimeout(2000);
|
||||||
logger.log("debug", `Went to ${url}`);
|
logger.log("debug", `Went to ${url}`);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const { message } = e as Error;
|
const { message } = e as Error;
|
||||||
|
|||||||
@@ -860,6 +860,7 @@ export const DOMBrowserRenderer: React.FC<RRWebDOMBrowserRendererProps> = ({
|
|||||||
height: auto !important;
|
height: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Make everything interactive */
|
/* Make everything interactive */
|
||||||
* {
|
* {
|
||||||
cursor: "pointer" !important;
|
cursor: "pointer" !important;
|
||||||
@@ -869,6 +870,7 @@ export const DOMBrowserRenderer: React.FC<RRWebDOMBrowserRendererProps> = ({
|
|||||||
${additionalCSS.join("\n\n")}
|
${additionalCSS.join("\n\n")}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
||||||
const headTagRegex = /<head[^>]*>/i;
|
const headTagRegex = /<head[^>]*>/i;
|
||||||
const cssInjection = `
|
const cssInjection = `
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
|||||||
Reference in New Issue
Block a user