Skip to content

Commit 018df9a

Browse files
committed
Increase fullpagescreenshot timeout to 50000ms
1 parent 7487c29 commit 018df9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/scripts/contentCapture/fullPageScreenshotHelper.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export interface FullPageScreenshotResult extends CaptureFailureInfo {
2323
}
2424

2525
export class FullPageScreenshotHelper {
26+
private static timeout = 50000;
27+
2628
public static getFullPageScreenshot(pageInfoContentData: string): Promise<FullPageScreenshotResult> {
2729
return new Promise<FullPageScreenshotResult>((resolve, reject) => {
2830
let fullPageScreenshotEvent = new Log.Event.PromiseEvent(Log.Event.Label.FullPageScreenshotCall);
@@ -41,7 +43,7 @@ export class FullPageScreenshotHelper {
4143
OneNoteApiUtils.logOneNoteApiRequestError(fullPageScreenshotEvent, error);
4244
};
4345

44-
Http.post(Constants.Urls.fullPageScreenshotUrl, pageInfoContentData, headers, [200, 204]).then((request: XMLHttpRequest) => {
46+
Http.post(Constants.Urls.fullPageScreenshotUrl, pageInfoContentData, headers, [200, 204], FullPageScreenshotHelper.timeout).then((request: XMLHttpRequest) => {
4547
if (request.status === 200) {
4648
try {
4749
resolve(JSON.parse(request.response) as FullPageScreenshotResult);

0 commit comments

Comments
 (0)