From e3e037803c7947588d958ce9b1021a09a4afd42a Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Fri, 4 Aug 2023 08:48:41 +1000 Subject: [PATCH] docs: fix locking bug --- demo/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/index.html b/demo/index.html index 5de8d14..c51dca1 100644 --- a/demo/index.html +++ b/demo/index.html @@ -196,7 +196,7 @@

Screen Orientation Lock API Demo

if (!document.fullscreenElement) { await document.documentElement.requestFullscreen(); } - await orientation.lock(value); + await screen.orientation.lock(value); log(`Screen orientation locked to "${value}".`, "success"); renderUpdate(); } catch (err) {