'use strict';

module.exports = function(/* environment, appConfig */) {
  return {
    name: 'crates.io: Rust Package Registry',
    short_name: 'crates.io',
    description: 'crates.io is the default crate host for Rust.',
    start_url: '/',
    display: 'standalone',
    background_color: '#3b6837',
    theme_color: '#f9f7ec',
    icons: [
      {
        src: 'cargo.png',
        sizes: '227x227',
        type: 'image/png',
      },
    ],
    ms: {
      tileColor: '#3b6837',
    },
  };
};

'use strict';

module.exports = function(/* environment, appConfig */) {
  return {
    name: 'crates.io: Rust Package Registry',
    short_name: 'crates.io',
    description: 'crates.io is the default crate host for Rust.',
    start_url: '/',
    display: 'standalone',
    background_color: '#3b6837',
    theme_color: '#f9f7ec',
    icons: [
      {
        src: '/cargo.png',
        sizes: '227x227',
        type: 'image/png',
      },
    ],
    ms: {
      tileColor: '#3b6837',
    },
  };
};

Fix an icon link that was generating bad URLs
Fix an icon link that was generating bad URLs

On current staging, but not production, navigating directly to a path
such as `/crates/crate-name` results in a request sent to
`/crates/cargo-835dd6a18132048a52ac569f2615b59d.png` (a 404 response
status).

It appears that the `src` field is now treated as a relative path.
Using an absolute URL works for me locally.
