Skip to content

Commit

Permalink
docs: fix locking bug
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Aug 3, 2023
1 parent 5ea7083 commit e3e0378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ <h1>Screen Orientation Lock API Demo</h1>
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) {
Expand Down

0 comments on commit e3e0378

Please sign in to comment.