diff options
Diffstat (limited to 'ppapi/examples/mouse_lock/mouse_lock.html')
-rw-r--r-- | ppapi/examples/mouse_lock/mouse_lock.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ppapi/examples/mouse_lock/mouse_lock.html b/ppapi/examples/mouse_lock/mouse_lock.html index 93ff070..5ce2261 100644 --- a/ppapi/examples/mouse_lock/mouse_lock.html +++ b/ppapi/examples/mouse_lock/mouse_lock.html @@ -14,15 +14,13 @@ } </style> <script> - var fullscreen = false; function ToggleFullscreen() { - if (fullscreen) { + if (document.webkitIsFullScreen) { document.webkitCancelFullScreen(); } else { document.getElementById('container').webkitRequestFullScreen( Element.ALLOW_KEYBOARD_INPUT); } - fullscreen = !fullscreen; } </script> </head> |