Skip to content

Commit

Permalink
chore: fix empty favicon update (#451)
Browse files Browse the repository at this point in the history
Co-authored-by: Ole Eskild Steensen <[email protected]>
  • Loading branch information
julesvirallinen and oleeskild authored Oct 1, 2023
1 parent 9d25440 commit ab26117
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/ui/SettingsView/SettingView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,14 @@ export default class SettingView {

faviconsAreIdentical =
// @ts-expect-error TODO: abstract octokit response
currentFaviconOnSite.data.content
.replaceAll("\n", "")
.replaceAll(" ", "") === base64SettingsFaviconContent;
currentFaviconOnSite.data.content ===
base64SettingsFaviconContent;

if (faviconsAreIdentical) {
Logger.info("Favicons are identical, skipping update");

return;
}
} catch (error) {
faviconExists = false;
}
Expand Down

0 comments on commit ab26117

Please sign in to comment.