Merge pull request #3035 from Inkbug/issue2998
Fix for Issue 2998 – "Consider using `window.parent !== window` instead of `!!window.frameElement`"
This commit is contained in:
		
						commit
						6ad7bd6be8
					
				| @ -886,7 +886,7 @@ var PDFView = { | |||||||
|                   doc.webkitRequestFullScreen; |                   doc.webkitRequestFullScreen; | ||||||
| 
 | 
 | ||||||
|     // Disable fullscreen button if we're in an iframe
 |     // Disable fullscreen button if we're in an iframe
 | ||||||
|     if (!!window.frameElement) |     if (window.parent !== window) | ||||||
|       support = false; |       support = false; | ||||||
| 
 | 
 | ||||||
|     Object.defineProperty(this, 'supportsFullScreen', { value: support, |     Object.defineProperty(this, 'supportsFullScreen', { value: support, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user