File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export class DemoApp {
57
57
58
58
}
59
59
60
- public toggleFullscreen ( ) {
60
+ toggleFullscreen ( ) {
61
61
let elem = this . _element . nativeElement . querySelector ( '.demo-content' ) ;
62
62
if ( elem . requestFullscreen ) {
63
63
elem . requestFullscreen ( ) ;
Original file line number Diff line number Diff line change @@ -50,24 +50,4 @@ export class FullscreenOverlayContainer extends OverlayContainer {
50
50
( document as any ) . msFullscreenElement ||
51
51
null ;
52
52
}
53
-
54
- /**
55
- * Toggle element into fullscreen mode
56
- * returns true if it has tried to toggle fullscreen mode
57
- * but provides no guarantees whether it really happened
58
- */
59
- toggleFullscreen ( element : HTMLElement ) {
60
- if ( element . requestFullscreen ) {
61
- element . requestFullscreen ( ) ;
62
- } else if ( element . webkitRequestFullScreen ) {
63
- element . webkitRequestFullScreen ( ) ;
64
- } else if ( ( element as any ) . mozRequestFullScreen ) {
65
- ( element as any ) . mozRequestFullScreen ( ) ;
66
- } else if ( ( element as any ) . msRequestFullScreen ) {
67
- ( element as any ) . msRequestFullScreen ( ) ;
68
- } else {
69
- return false ;
70
- }
71
- return true ;
72
- }
73
53
}
You can’t perform that action at this time.
0 commit comments