🎈👛 Checkpoint

./public/script.js:1954897/5108
This commit is contained in:
Glitch (hello-express) committed 2019-06-28 05:11:18 +00:00
1 parent 7bc62b43f6
commit c77d96a571
1 file changed
+2 -3
+2 -3
View File
@@ -21,10 +21,9 @@
})
}
window.addEventListener("orientationchange", function () {
window.addEventListener("mousedown", function () {
requestAnimationFrame(function () {
var landscape = window.matchMedia("(orientation: landscape)").matches
alert(landscape ? "Horizontally" : "Vertically")
screen.orientation.lock('landscape')
})
}, false);