about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorgol-cha <info@mevo.xyz>2019-02-02 09:26:49 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-02-02 01:26:49 +0100
commitb253d3e0c2591700f597ad63a93bc62c5f48409d (patch)
treebf32f2b84f4de736d24911d55d2b7ee035772d15 /app
parent3de63b3c351c7584e911b4839dff6395d2ccb5ec (diff)
Upgrade new Web Share Target API (#9963)
* Update manifest.json for new Web Share Target API.

* fix code formatting
Diffstat (limited to 'app')
-rw-r--r--app/serializers/manifest_serializer.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/serializers/manifest_serializer.rb b/app/serializers/manifest_serializer.rb
index 859ef0d14..cc8b9a4d4 100644
--- a/app/serializers/manifest_serializer.rb
+++ b/app/serializers/manifest_serializer.rb
@@ -52,6 +52,14 @@ class ManifestSerializer < ActiveModel::Serializer
   end
 
   def share_target
-    { url_template: 'share?title={title}&text={text}&url={url}' }
+    {
+      url_template: 'share?title={title}&text={text}&url={url}',
+      action: 'share',
+      params: {
+        title: 'title',
+        text: 'text',
+        url: 'url',
+      },
+    }
   end
 end