mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
Merge pull request #4556 from urbit/mp/landscape/favicon-contact
landscape: fix favicons for flattened contacts
This commit is contained in:
commit
ecb7d82bf3
@ -119,8 +119,8 @@ class App extends React.Component {
|
|||||||
|
|
||||||
faviconString() {
|
faviconString() {
|
||||||
let background = '#ffffff';
|
let background = '#ffffff';
|
||||||
if (this.state.contacts.hasOwnProperty('/~/default')) {
|
if (this.state.contacts.hasOwnProperty(`~${window.ship}`)) {
|
||||||
background = `#${uxToHex(this.state.contacts['/~/default'][window.ship].color)}`;
|
background = `#${uxToHex(this.state.contacts[`~${window.ship}`].color)}`;
|
||||||
}
|
}
|
||||||
const foreground = foregroundFromBackground(background);
|
const foreground = foregroundFromBackground(background);
|
||||||
const svg = sigiljs({
|
const svg = sigiljs({
|
||||||
|
Loading…
Reference in New Issue
Block a user