I used the Full Screen API to set the document body to fullscreen.
Now, all calls for document.exitFullScreen
(with the appropriate prefixes) result in the error:
Uncaught TypeError: Illegal invocation
at HTMLDivElement.fs.onclick
The function neither works in an event handler, or in the normal JS flow.
What is the problem, and how do I fix this? There is so little documentation, and I have not found anyone else with the error.