File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 624
624
// Remove everything except the entry we want to keep
625
625
state . entries = [ state . entries [ foundEntryIndex ] ] ;
626
626
}
627
- state . image = pin . iconUrl || null ;
627
+ state . image || = pin . iconUrl || null ;
628
628
state . index = 0 ;
629
629
630
630
SessionStore . setTabState ( tab , state ) ;
765
765
document . getElementById ( 'context_pinTab' ) ?. before ( element ) ;
766
766
}
767
767
768
- // TODO: remove this as it's not possible to know the base pinned url any more as it's now stored in tab state
769
- resetPinnedTabData ( tabData ) {
770
- if (
771
- lazy . zenPinnedTabRestorePinnedTabsToPinnedUrl &&
772
- tabData . pinned &&
773
- tabData . zenPinnedEntry
774
- ) {
775
- tabData . entries = [ JSON . parse ( tabData . zenPinnedEntry ) ] ;
776
- tabData . image = tabData . zenPinnedIcon ;
777
- tabData . index = 0 ;
778
- }
779
- }
780
-
781
768
updatePinnedTabContextMenu ( contextTab ) {
782
769
if ( ! this . enabled ) {
783
770
document . getElementById ( 'context_pinTab' ) . hidden = true ;
You can’t perform that action at this time.
0 commit comments