PdfRedirector checks if plugin is still in PlayPreview mode
This commit is contained in:
		
							parent
							
								
									34089212e0
								
							
						
					
					
						commit
						75d9ae9cd3
					
				@ -60,6 +60,10 @@ function getObjectUrl(window) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Checking if overlay is a proper PlayPreview overlay.
 | 
					  // Checking if overlay is a proper PlayPreview overlay.
 | 
				
			||||||
 | 
					  if (element.displayedType !== element.TYPE_NULL ||
 | 
				
			||||||
 | 
					      element.pluginFallbackType !== element.PLUGIN_PLAY_PREVIEW) {
 | 
				
			||||||
 | 
					    return null; // invalid plugin element overlay state
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
  for (var i = 0; i < element.children.length; i++) {
 | 
					  for (var i = 0; i < element.children.length; i++) {
 | 
				
			||||||
    if (element.children[i] === containerElement) {
 | 
					    if (element.children[i] === containerElement) {
 | 
				
			||||||
      return null; // invalid plugin element overlay
 | 
					      return null; // invalid plugin element overlay
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user