File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -266,10 +266,12 @@ module.exports = {
266266 let enabledExtensionsCopy = JSON . parse ( JSON . stringify ( window . vidiConfig . enabledExtensions ) ) ;
267267 $ . each ( vidiConfig . extensions . browser , function ( i , v ) {
268268 $ . each ( v [ Object . keys ( v ) [ 0 ] ] , function ( n , m ) {
269- let enabledExtensionIndex = enabledExtensionsCopy . indexOf ( Object . keys ( v ) [ 0 ] ) ;
270- if ( enabledExtensionIndex > - 1 ) {
269+ if ( window . vidiConfig . enabledExtensions . indexOf ( Object . keys ( v ) [ 0 ] ) > - 1 ) {
271270 modules . extensions [ Object . keys ( v ) [ 0 ] ] [ m ] . init ( ) ;
272- enabledExtensionsCopy . splice ( enabledExtensionIndex , 1 ) ;
271+ let enabledExtensionIndex = enabledExtensionsCopy . indexOf ( Object . keys ( v ) [ 0 ] ) ;
272+ if ( enabledExtensionIndex > - 1 ) {
273+ enabledExtensionsCopy . splice ( enabledExtensionIndex , 1 ) ;
274+ }
273275 }
274276 } )
275277 } ) ;
You can’t perform that action at this time.
0 commit comments