aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2024-08-17 16:46:49 +0200
committervulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2024-08-17 16:46:49 +0200
commit747cbf84f241eb699d0d00448a71ae2d3cdffb7b (patch)
treee816dea99cdb5906a20071bc668485168e96f242
parent8d0a045ea5f42808c2b50d3b6b249862e04e2e9b (diff)
librewolf canvas access
-rw-r--r--views/partials/canvas.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/views/partials/canvas.html b/views/partials/canvas.html
index 5724225..5be9eff 100644
--- a/views/partials/canvas.html
+++ b/views/partials/canvas.html
@@ -11,6 +11,7 @@
<script type="text/javascript">
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
+ ctx.getImageData(0, 0, 1, 1); // to trigger librewolf's protection (and allow users to enable canvas before publishing)
//ctx.fillStyle = "black";
let isDrawing = false;