[BUGFIX] Fullscreen icon switch

This commit is contained in:
Xaver Maierhofer 2018-08-01 21:16:41 +02:00
parent e1d3a3d7b2
commit 3311e70296
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8

View File

@ -184,6 +184,7 @@ define({
|| fel.webkitRequestFullScreen
|| fel.mozRequestFullScreen;
func.call(fel);
btn.classList.remove('ion-full-enter');
btn.classList.add('ion-full-exit');
} else {
func = document.exitFullscreen
@ -191,6 +192,7 @@ define({
|| document.mozCancelFullScreen;
if (func) {
func.call(document);
btn.classList.remove('ion-full-exit');
btn.classList.add('ion-full-enter');
}
}