mirror of
https://github.com/servo/servo.git
synced 2025-07-14 10:53:42 +01:00
11 lines
226 B
HTML
11 lines
226 B
HTML
<script>
|
|
let msg = "";
|
|
screen.orientation.lock("portrait-primary")
|
|
.then(() => {
|
|
msg = screen.orientation.type;
|
|
}).catch(error => {
|
|
msg = error.name;
|
|
}).finally(() => {
|
|
parent.window.postMessage(msg, "*");
|
|
});
|
|
</script>
|