Skip to content

A free open source IT asset/license management system

Remove debugging

Marcus Moore87756cac6689
diff --git a/resources/views/account/accept/create.blade.php b/resources/views/account/accept/create.blade.php
index 7225c0eba1..e811d48105 100644
--- a/resources/views/account/accept/create.blade.php
+++ b/resources/views/account/accept/create.blade.php
@@ -117,13 +117,10 @@
// https://github.com/szimek/signature_pad#handling-high-dpi-screens
// (This also causes canvas to be cleared.)
function resizeCanvas() {
- console.log('resizeCanvas');
// When zoomed out to less than 100%, for some very strange reason,
// some browsers report devicePixelRatio as less than 1
// and only part of the canvas is cleared then.
- let devicePixelRatio = window.devicePixelRatio;
- console.log({devicePixelRatio})
- var ratio = Math.max(devicePixelRatio || 1, 1);
+ var ratio = Math.max(window.devicePixelRatio || 1, 1);
canvas.width = canvas.offsetWidth * ratio;
canvas.height = canvas.offsetHeight * ratio;
canvas.getContext("2d").scale(ratio, ratio);