mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-08 02:34:46 -04:00
feat: Add basic support for Web Share Target API (#714)
This commit is contained in:
parent
3f419ad7b6
commit
66fdd6c428
@ -78,5 +78,13 @@
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"background_color": "#FFFFFF",
|
||||
"theme_color": "#E58325"
|
||||
"theme_color": "#E58325",
|
||||
"share_target": {
|
||||
"action": "/",
|
||||
"method": "GET",
|
||||
"params": {
|
||||
"title": "title",
|
||||
"text": "recipe_import_url"
|
||||
}
|
||||
}
|
||||
}
|
@ -166,10 +166,12 @@ export default {
|
||||
},
|
||||
|
||||
mounted() {
|
||||
if (this.$route.query.recipe_import_url) {
|
||||
this.addRecipe = true;
|
||||
this.createRecipe();
|
||||
}
|
||||
this.$router.onReady(() => {
|
||||
if (this.$route.query.recipe_import_url) {
|
||||
this.addRecipe = true;
|
||||
this.createRecipe();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
computed: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user