Skip to content

Commit

Permalink
Fixed: Icons
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Apr 21, 2022
1 parent cc809b8 commit 7f54b0b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/assets/favicon-addons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/favicon-dashboard.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/favicon-pref.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions src/services/favicons.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,15 @@ export function getFavPlaceholder(url: string): string {
if (FILE_RE.test(url)) return '#icon_local_file'

if (url.startsWith('a')) {
if (url.startsWith('about:preferences')) return '#icon_pref'
if (url.startsWith('about:addons')) return '#icon_addons'
if (url.startsWith('about:performance')) return '#icon_perf'
if (url.startsWith('about:new')) return '#icon_ff'
if (url.startsWith('about:bla')) return '#icon_ff'
if (url.startsWith('about:pre')) return '#icon_pref'
if (url.startsWith('about:con')) return '#icon_pref'
if (url.startsWith('about:add')) return '#icon_addons'
if (url.startsWith('about:per')) return '#icon_perf'
if (url.startsWith('about:dev')) return '#icon_code'
if (url.startsWith('about:proc')) return '#icon_perf'
if (url.startsWith('about:prot')) return '#icon_dashboard'
}

return '#icon_ff'
Expand Down
1 change: 1 addition & 0 deletions src/sidebar/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<inject>svg://src/assets/favicon-addons.svg#icon_addons</inject>
<inject>svg://src/assets/favicon-perf.svg#icon_perf</inject>
<inject>svg://src/assets/favicon-link.svg#icon_link_favicon</inject>
<inject>svg://src/assets/favicon-dashboard.svg#icon_dashboard</inject>
<inject>svg://src/assets/firefox.svg#icon_ff</inject>
<inject>svg://src/assets/firefox-min.svg#icon_ffm</inject>
<inject>svg://src/assets/undo.svg#icon_undo</inject>
Expand Down

0 comments on commit 7f54b0b

Please sign in to comment.