Re: [w3c/screen-orientation] Editorial: Example 2 (#134)

marcoscaceres commented on this pull request.



>        </p>
       <pre class='example html'>
 &lt;script&gt;
-  var start = function() {
-    document.onfullscreenchange = function() {
-      screen.orientation.lock('natural').then(startInternal);
-    }
-    document.documentElement.requestFullscreen();
+  function ready(){
+    console.log("Now full screen and ready to start, locked to " + screen.orientation.type);

(feel free to adjust the wording)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/pull/134#discussion_r248619013

Received on Thursday, 17 January 2019 10:40:58 UTC