fd552857567365064adf041d5a9043fbc8bb4635 — Drew DeVault 6 months ago 5acf6d3 master
Show mobile warning on portrait devices
1 files changed, 4 insertions(+), 0 deletions(-)

M index.js
M index.js => index.js +4 -0
@@ 866,6 866,10 @@ ctx.textAlign = "center";
    ctx.fillStyle = "white";
    ctx.fillText("click me", width / 2, height / 2);
+   if (width < height) {
+     ctx.font = "24px sans-serif";
+     ctx.fillText("(warning: may not work on mobile)", width / 2, height * 0.75);
+   }
  }
  
  let started = false;