Skip to content

Commit

Permalink
Fix Build
Browse files Browse the repository at this point in the history
  • Loading branch information
sebavan committed Sep 18, 2019
1 parent be3a03f commit a186271
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 1,221 deletions.
2 changes: 1 addition & 1 deletion dist/spector.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extensions/spector.bundle.func.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extensions/spector.bundle.js

Large diffs are not rendered by default.

47 changes: 14 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"tslint": "^5.12.1",
"typescript": "^3.5.2",
"typescript": "^3.6.3",
"webpack": "^4.29.3",
"webpack-cli": "^3.2.3"
}
Expand Down
8 changes: 4 additions & 4 deletions src/backend/spies/contextSpy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ export class ContextSpy {
// Refreshes canvas info in case it changed beffore the capture.
this.currentCapture.canvas.width = this.context.canvas.width;
this.currentCapture.canvas.height = this.context.canvas.height;
this.currentCapture.canvas.clientWidth = this.context.canvas.clientWidth;
this.currentCapture.canvas.clientHeight = this.context.canvas.clientHeight;
this.currentCapture.canvas.clientWidth = (this.context.canvas as HTMLCanvasElement).clientWidth || this.context.canvas.width;
this.currentCapture.canvas.clientHeight = (this.context.canvas as HTMLCanvasElement).clientHeight || this.context.canvas.height;

this.stateSpy.startCapture(this.currentCapture, quickCapture);
this.recorderSpy.startCapture();
Expand Down Expand Up @@ -244,8 +244,8 @@ export class ContextSpy {
this.canvasCapture = {
width: this.context.canvas.width,
height: this.context.canvas.height,
clientWidth: this.context.canvas.clientWidth,
clientHeight: this.context.canvas.clientHeight,
clientWidth: (this.context.canvas as HTMLCanvasElement).clientWidth || this.context.canvas.width,
clientHeight: (this.context.canvas as HTMLCanvasElement).clientHeight || this.context.canvas.height,
browserAgent: navigator ? navigator.userAgent : "",
};
}
Expand Down
Loading

0 comments on commit a186271

Please sign in to comment.