Skip to content

Commit 87756ca

Browse files
committed
Remove debugging
1 parent 9f49c25 commit 87756ca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

resources/views/account/accept/create.blade.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,10 @@
117117
// https://github.com/szimek/signature_pad#handling-high-dpi-screens
118118
// (This also causes canvas to be cleared.)
119119
function resizeCanvas() {
120-
console.log('resizeCanvas');
121120
// When zoomed out to less than 100%, for some very strange reason,
122121
// some browsers report devicePixelRatio as less than 1
123122
// and only part of the canvas is cleared then.
124-
let devicePixelRatio = window.devicePixelRatio;
125-
console.log({devicePixelRatio})
126-
var ratio = Math.max(devicePixelRatio || 1, 1);
123+
var ratio = Math.max(window.devicePixelRatio || 1, 1);
127124
canvas.width = canvas.offsetWidth * ratio;
128125
canvas.height = canvas.offsetHeight * ratio;
129126
canvas.getContext("2d").scale(ratio, ratio);

0 commit comments

Comments
 (0)