From 1258bfe3a1297fc1c406aa3b181580d3cd7582c5 Mon Sep 17 00:00:00 2001 From: Julius de Jeu Date: Sun, 12 Jun 2022 09:28:46 +0200 Subject: [PATCH] Fix camera for ios maybe? --- templates/base.html | 4 ++-- templates/party.html | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/templates/base.html b/templates/base.html index 6e84af0..21dca9f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -22,8 +22,8 @@ diff --git a/templates/party.html b/templates/party.html index 041ab05..d68213c 100644 --- a/templates/party.html +++ b/templates/party.html @@ -18,9 +18,8 @@ Scannen

Nog geen gescand

Nog geen gescand

-
- +
@@ -180,7 +179,7 @@ setInterval(() => { console.log("scanning now?") - const canvas = document.getElementById("qr-canvas"); + const canvas = document.createElement("canvas"); canvas.width = videoElement.videoWidth; canvas.height = videoElement.videoHeight; canvas.getContext("2d").drawImage(videoElement, 0, 0);