Chrome manifest; Artistgrid when cached spotify gets followers and albums

This commit is contained in:
James Barnsley
2017-03-27 05:41:19 +13:00
parent 9b9514b4e2
commit 68f8b97a6d
3 changed files with 18 additions and 1 deletions

15
src/assets/manifest.json Executable file
View File

@ -0,0 +1,15 @@
{
"short_name": "Iris",
"name": "Iris",
"icons": [
{
"src": "/iris/assets/favicon.ico",
"type": "image/png",
"sizes": "48x48"
}
],
"start_url": "/iris/index.html",
"background_color": "#08d58f",
"theme_color": "#222222",
"display": "standalone"
}

View File

@ -16,6 +16,8 @@
<link href="//fonts.googleapis.com/css?family=Archivo+Narrow:300,300i,400,400i,700" rel="stylesheet">
<link href="/iris/app.css" rel="stylesheet" />
<link rel="manifest" href="/iris/manifest.json">
</head>
<body>

View File

@ -44,7 +44,7 @@ class ArtistGrid extends React.Component{
<div className="name">{ artist.name }</div>
<div className="secondary">
{artist.followers ? artist.followers.total.toLocaleString()+' followers' : null}
{artist.albums_uris ? artist.albums_uris.length+' albums' : null}
{artist.albums_uris && !artist.followers ? artist.albums_uris.length+' albums' : null}
</div>
</Link>
)