Skip to content

Commit 9c62976

Browse files
committed
fix(cdk/overlay): remove old prefixes for fullscreen elements
Removes a couple of prefixes that aren't necessary anymore. (cherry picked from commit f6c2a19)
1 parent 237d951 commit 9c62976

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

‎src/cdk/overlay/fullscreen-overlay-container.ts‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ export class FullscreenOverlayContainer extends OverlayContainer implements OnDe
5656
this._fullScreenEventName = 'fullscreenchange';
5757
} else if (_document.webkitFullscreenEnabled) {
5858
this._fullScreenEventName = 'webkitfullscreenchange';
59-
} else if (_document.mozFullScreenEnabled) {
60-
this._fullScreenEventName = 'mozfullscreenchange';
61-
} else if (_document.msFullscreenEnabled) {
62-
this._fullScreenEventName = 'MSFullscreenChange';
6359
}
6460
}
6561

@@ -72,13 +68,6 @@ export class FullscreenOverlayContainer extends OverlayContainer implements OnDe
7268
*/
7369
getFullscreenElement(): Element {
7470
const _document = this._document as any;
75-
76-
return (
77-
_document.fullscreenElement ||
78-
_document.webkitFullscreenElement ||
79-
_document.mozFullScreenElement ||
80-
_document.msFullscreenElement ||
81-
null
82-
);
71+
return _document.fullscreenElement || _document.webkitFullscreenElement || null;
8372
}
8473
}

0 commit comments

Comments
 (0)