Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Temp fix build for old Page.configureOverlay method
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Aug 28, 2017
1 parent 12568eb commit 947fd80
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ export class ChromeDebugAdapter extends CoreDebugAdapter {
}

protected onPaused(notification: Crdp.Debugger.PausedEvent, expectingStopReason?: stoppedEvent.ReasonType): void {
this._overlayHelper.doAndCancel(() => this.chrome.Page.configureOverlay({ message: ChromeDebugAdapter.PAGE_PAUSE_MESSAGE }).catch(() => { }));
// TODO - https://github.com/Microsoft/vscode-chrome-debug/issues/486
this._overlayHelper.doAndCancel(() => (<any>this.chrome).Page.configureOverlay({ message: ChromeDebugAdapter.PAGE_PAUSE_MESSAGE }).catch(() => { }));
super.onPaused(notification, expectingStopReason);
}

Expand All @@ -143,7 +144,7 @@ export class ChromeDebugAdapter extends CoreDebugAdapter {
}

protected onResumed(): void {
this._overlayHelper.wait(() => this.chrome.Page.configureOverlay({ }).catch(() => { }));
this._overlayHelper.wait(() => (<any>this.chrome).Page.configureOverlay({ }).catch(() => { }));
super.onResumed();
}

Expand Down

0 comments on commit 947fd80

Please sign in to comment.