Skip to content

Commit d87c258

Browse files
ovvneKoopmans
authored andcommitted
[worker] Remove unused var. (#195)
1 parent 82b2077 commit d87c258

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/worker.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ Worker.prototype.toPdf = function toPdf() {
176176
var opt = this.opt;
177177

178178
// Calculate the number of pages.
179-
var ctx = canvas.getContext('2d');
180179
var pxFullHeight = canvas.height;
181180
var pxPageHeight = Math.floor(canvas.width * this.prop.pageSize.inner.ratio);
182181
var nPages = Math.ceil(pxFullHeight / pxPageHeight);

0 commit comments

Comments
 (0)