Upgrade new Web Share Target API (#9963)
* Update manifest.json for new Web Share Target API. * fix code formattingpull/8447/head^2
parent
3de63b3c35
commit
b253d3e0c2
|
@ -52,6 +52,14 @@ class ManifestSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def share_target
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue