src/view/fullscreen_api.js
function error() {
                reject(new TypeError());
                doc.removeEventListener(api.events.error, error, false);
            }
function error() {
                reject(new TypeError());
                doc.removeEventListener(api.events.error, error, false);
            }
function error ( ) { reject ( new TypeError ( ) ) ; doc . removeEventListener ( api . events . error , error , false ) ; }
When receiving an internal fullscreenerror event, reject the promise
When receiving an internal fullscreenerror event reject the promise