screenfull error in phone

This commit is contained in:
Harvey Zack committed 2018-12-17 13:47:41 +08:00
1 parent 0553eb8aa3
commit 6b095af945
5 files changed
+19 -7

No files matched your search

+8 -2
View File
@@ -1660,9 +1660,15 @@
var screenfullError = function screenfullError() {
notice.show('Your browser does not seem to support full screen functionality.');
};
}; // Can't run on the phone
try {
screenfull.on('change', screenfullChange);
} catch (error) {
console.error(error);
}
screenfull.on('change', screenfullChange);
screenfull.on('error', screenfullError);
destroyEvents.push(function () {
screenfull.off('change', screenfullChange);