diff --git a/src/site/components/home/links/Links.vue b/src/site/components/home/links/Links.vue index 2d6cfc3..1a1f077 100644 --- a/src/site/components/home/links/Links.vue +++ b/src/site/components/home/links/Links.vue @@ -103,21 +103,18 @@ export default { computed: { loggedIn() { return this.$store.state.loggedIn; - }, - token() { - return this.$store.state.token; } }, methods: { createShareXThing() { const sharexFile = `{ - "Name": "${location.hostname}", + "Name": "${this.$store.state.config.serviceName}", "DestinationType": "ImageUploader, FileUploader", "RequestType": "POST", "RequestURL": "${location.origin}/api/upload", - "FileFormName": "file", + "FileFormName": "files[]", "Headers": { - "authorization": "Bearer ${this.token}", + "authorization": "Bearer ${this.$store.state.token}", "accept": "application/vnd.lolisafe.json" }, "ResponseType": "Text",