关于全屏报错问题

Author: sunboyZgzCreated Apr 15, 2021Updated Apr 15, 2021

/src/components/HeaderCustom.tsx

javascript
if (screenfull.isEnabled && !screenfull.isFullscreen) {
    screenfull.request()
    .catch(console.log);        //do something
 }

进行一点判断和处理会不会更好呢?