]> git.openstreetmap.org Git - rails.git/blob - app/assets/favicons/manifest.json.erb
Fix svg icon path in manifest.json
[rails.git] / app / assets / favicons / manifest.json.erb
1 {
2         "name": "OpenStreetMap",
3         "short_name": "OSM",
4         "icons": <%= [36, 48, 72, 96, 144, 192].map { |res| {
5                         src: image_path("android-chrome-#{res}x#{res}.png"),
6                         sizes: "#{res}x#{res}",
7                         type: "image/png",
8                         density: res.to_f / 48
9                 } }.push({
10                         src: image_path("osm_logo.svg"),
11                         sizes: "any",
12                         type: "image/svg+xml"
13                 }).to_json %>,
14         "start_url": "/",
15         "theme_color": "#7ebc6f",
16         "background_color": "#fff",
17         "display": "minimal-ui",
18         "protocol_handlers": [
19                 {
20                         "protocol": "geo",
21                         "url": "/?geouri=%s"
22                 }
23         ]
24 }