@@ -36,12 +36,15 @@ class DevTools {
3636 set : _ => { } ,
3737 getAsArray : _ => [ ]
3838 } ;
39- if ( module === 'releaseNoteVersionSeen' )
39+ if ( module === 'releaseNoteVersionSeen' ) {
4040 ret . get = _ => Infinity ;
41- if ( module === 'showNativeFunctionsInJSProfile' )
41+ }
42+ if ( module === 'showNativeFunctionsInJSProfile' ) {
4243 ret . get = _ => true ;
43- if ( module === 'flamechartMouseWheelAction' )
44+ }
45+ if ( module === 'flamechartMouseWheelAction' ) {
4446 ret . get = _ => 'zoom' ;
47+ }
4548 return ret ;
4649 } ;
4750
@@ -138,7 +141,7 @@ class DevTools {
138141 . shadowRoot . querySelector ( '.toolbar-shadow' )
139142 . querySelectorAll ( 'button,div' ) .
140143 forEach ( elem => elem . remove ( ) ) ;
141- } catch ( e ) {
144+ } catch ( e ) {
142145 console . warn ( 'failed to tweak UI' , e ) ;
143146 }
144147 }
@@ -156,9 +159,9 @@ class DevTools {
156159 const timelinePanel = Timeline . TimelinePanel . instance ( ) ;
157160 const dropTarget = timelinePanel . _dropTarget ;
158161 const handleDrop = dropTarget . _handleDrop ;
159- dropTarget . _handleDrop = function ( _ ) {
162+ dropTarget . _handleDrop = function ( ... args ) {
160163 viewerInstance . toggleUploadToDriveElem ( viewerInstance . canUploadToDrive ) ;
161- handleDrop . apply ( dropTarget , arguments ) ;
164+ handleDrop . apply ( dropTarget , ... args ) ;
162165 } ;
163166 }
164167 }
@@ -167,10 +170,12 @@ class DevTools {
167170 const panel = Timeline . TimelinePanel . instance ( ) ;
168171 const oldSetMarkers = panel . _setMarkers ;
169172 panel . _setMarkers = function ( ) {
170- if ( this . _performanceModel . _timelineModel . networkRequests ( ) . length === 0 )
173+ if ( this . _performanceModel . _timelineModel . networkRequests ( ) . length === 0 ) {
171174 Common . settings . createSetting ( 'timelineCaptureNetwork' , true ) . set ( false ) ;
172- if ( this . _performanceModel . filmStripModel ( ) . _frames . length === 0 )
175+ }
176+ if ( this . _performanceModel . filmStripModel ( ) . _frames . length === 0 ) {
173177 Common . settings . createSetting ( 'timelineCaptureFilmStrip' , true ) . set ( false ) ;
178+ }
174179 oldSetMarkers . call ( this , this . _performanceModel . _timelineModel ) ;
175180 } ;
176181 }
0 commit comments