FIX: WebAPK minting was broken due to shortcut icons

FIX: WebAPK minting was broken due to shortcut icons

SVG support is very flaky, but this way at least minting works again

diff --git a/app/controllers/metadata_controller.rb b/app/controllers/metadata_controller.rb
index 2ce4ada..3ac058e 100644
--- a/app/controllers/metadata_controller.rb
+++ b/app/controllers/metadata_controller.rb
@@ -62,8 +62,8 @@ class MetadataController < ApplicationController
           icons: [
             {
               src: "#{icon_url_base}/plus.svg",
-              sizes: "any",
-              type: "image/svg+xml"
+              sizes: "131x150",
+              type: "image/svg"
             }
           ]
         },
@@ -74,8 +74,8 @@ class MetadataController < ApplicationController
           icons: [
             {
               src: "#{icon_url_base}/envelope.svg",
-              sizes: "any",
-              type: "image/svg+xml"
+              sizes: "150x150",
+              type: "image/svg"
             }
           ]
         },
@@ -86,8 +86,8 @@ class MetadataController < ApplicationController
           icons: [
             {
               src: "#{icon_url_base}/bookmark.svg",
-              sizes: "any",
-              type: "image/svg+xml"
+              sizes: "113x150",
+              type: "image/svg"
             }
           ]
         },
@@ -98,8 +98,8 @@ class MetadataController < ApplicationController
           icons: [
             {
               src: "#{icon_url_base}/signal.svg",
-              sizes: "any",
-              type: "image/svg+xml"
+              sizes: "188x150",
+              type: "image/svg"
             }
           ]
         }

GitHub sha: 11cd1491

2 Likes