File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 15
15
16
16
( function ( ) {
17
17
'use strict' ;
18
- if ( typeof unsafeWindow == 'undefined' ) var unsafeWindow = window ;
18
+ var _unsafeWindow = ( typeof unsafeWindow == 'undefined' ) ? window : unsafeWindow ;
19
19
document . onclick = null ;
20
20
var tabsmenus = document . querySelectorAll ( "#slidetabsmenu>ul>li>a" ) ;
21
21
for ( var i = 0 ; i < tabsmenus . length ; i ++ ) {
31
31
ratingText . style . marginLeft = "5px" ;
32
32
var downBtn = document . createElement ( "a" ) ;
33
33
downBtn . style . display = "flex" ;
34
- if ( unsafeWindow . so ) {
35
- downBtn . href = unsafeWindow . so . variables . file ;
36
- } else if ( unsafeWindow . jwplayer ) {
37
- downBtn . href = unsafeWindow . jwplayer ( "myElement" ) . config . file ;
38
- } else if ( unsafeWindow . videojs ) {
39
- var vplayer = unsafeWindow . videojs ( 'my-video' , {
34
+ if ( _unsafeWindow . so ) {
35
+ downBtn . href = _unsafeWindow . so . variables . file ;
36
+ } else if ( _unsafeWindow . jwplayer ) {
37
+ downBtn . href = _unsafeWindow . jwplayer ( "myElement" ) . config . file ;
38
+ } else if ( _unsafeWindow . videojs ) {
39
+ var vplayer = _unsafeWindow . videojs ( 'my-video' , {
40
40
techOrder : [ 'shaka' , 'html5' ] ,
41
41
plugins : {
42
42
videoJsResolutionSwitcher : {
You can’t perform that action at this time.
0 commit comments