File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ function makeContent()
7070 {
7171 $ ( "#torrent_file" ) . val ( "" ) ;
7272 $ ( "#add_button" ) . prop ( "disabled" , false ) ;
73- var d = ( this . contentDocument || this . contentWindow . document ) ;
73+ var d = this . contentDocument ;
7474 if ( d && ( d . location . href != "about:blank" ) )
7575 {
7676 try { var txt = d . body . textContent ? d . body . textContent : d . body . innerText ; eval ( txt ) ; } catch ( e ) { }
@@ -79,7 +79,7 @@ function makeContent()
7979 $ ( document . body ) . append ( $ ( "<iframe name='uploadfrmurl'/>" ) . css ( { visibility : "hidden" } ) . attr ( { name : "uploadfrmurl" } ) . width ( 0 ) . height ( 0 ) . on ( 'load' , function ( )
8080 {
8181 $ ( "#url" ) . val ( "" ) ;
82- var d = ( this . contentDocument || this . contentWindow . document ) ;
82+ var d = this . contentDocument ;
8383 if ( d . location . href != "about:blank" )
8484 try { eval ( d . body . textContent ? d . body . textContent : d . body . innerText ) ; } catch ( e ) { }
8585 } ) ) ;
You can’t perform that action at this time.
0 commit comments