File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 166166
167167 // Init entry's elems
168168 const ssEntry = {
169- div : dom . create . elem ( 'div' , { class : 'menu-entry' } ) ,
169+ div : dom . create . elem ( 'div' , { class : 'menu-entry highlight-on-hover ' } ) ,
170170 switchLabelDiv : dom . create . elem ( 'div' , {
171- class : 'highlight-on-hover' ,
172171 title : `${ getMsg ( 'helptip_run' ) } ${ app . name } on ${ sites [ site ] . urls . homepage } ` ,
173172 style : `display: flex ; height: 33px ; align-items: center ; flex-grow: 1 ;
174173 margin-left: -2px ; padding-left: 2px /* fill .menu-entry left-padding */` } ) ,
199198 getMsg ( `state_${ extensionIsDisabled ( ) ? 'off' : 'on' } ` ) . toUpperCase ( ) } `)
200199 }
201200 }
202- ssEntry . faviconDiv . onmouseenter = ssEntry . faviconDiv . onmouseleave = ( { type } ) => // swap favicon/open icon
203- ssEntry . faviconDiv . firstChild . replaceWith ( type == 'mouseenter' ? ssEntry . openIcon : ssEntry . favicon )
201+ ssEntry . faviconDiv . onmouseenter = ssEntry . faviconDiv . onmouseleave = ( { type } ) =>
202+ ssEntry . faviconDiv . firstChild . replaceWith ( ssEntry [ type == 'mouseenter' ? ' openIcon' : ' favicon' ] )
204203 ssEntry . faviconDiv . onclick = ( ) => { open ( `https://${ sites [ site ] . urls . homepage } ` ) ; close ( ) }
205204 }
206205
Original file line number Diff line number Diff line change 166166
167167 // Init entry's elems
168168 const ssEntry = {
169- div : dom . create . elem ( 'div' , { class : 'menu-entry' } ) ,
169+ div : dom . create . elem ( 'div' , { class : 'menu-entry highlight-on-hover ' } ) ,
170170 switchLabelDiv : dom . create . elem ( 'div' , {
171- class : 'highlight-on-hover' ,
172171 title : `${ getMsg ( 'helptip_run' ) } ${ app . name } on ${ sites [ site ] . urls . homepage } ` ,
173172 style : `display: flex ; height: 33px ; align-items: center ; flex-grow: 1 ;
174173 margin-left: -2px ; padding-left: 2px /* fill .menu-entry left-padding */` } ) ,
199198 getMsg ( `state_${ extensionIsDisabled ( ) ? 'off' : 'on' } ` ) . toUpperCase ( ) } `)
200199 }
201200 }
202- ssEntry . faviconDiv . onmouseenter = ssEntry . faviconDiv . onmouseleave = ( { type } ) => // swap favicon/open icon
203- ssEntry . faviconDiv . firstChild . replaceWith ( type == 'mouseenter' ? ssEntry . openIcon : ssEntry . favicon )
201+ ssEntry . faviconDiv . onmouseenter = ssEntry . faviconDiv . onmouseleave = ( { type } ) =>
202+ ssEntry . faviconDiv . firstChild . replaceWith ( ssEntry [ type == 'mouseenter' ? ' openIcon' : ' favicon' ] )
204203 ssEntry . faviconDiv . onclick = ( ) => { open ( `https://${ sites [ site ] . urls . homepage } ` ) ; close ( ) }
205204 }
206205
You can’t perform that action at this time.
0 commit comments