mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 13:21:20 -08:00
screenfull error in phone
This commit is contained in:
1 parent
0553eb8aa3
commit
6b095af945
5 files changed
+19
-7
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user