diff options
| author | Pitu <[email protected]> | 2019-10-12 20:16:23 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2019-10-12 20:16:23 +0900 |
| commit | 1177de9b041b759cc1c29fc3853599346079fded (patch) | |
| tree | 21c5c14965803cb7210bb619298cda1260962999 /src | |
| parent | fix: we don't want non-admins to access the settings section (diff) | |
| download | host.fuwn.me-1177de9b041b759cc1c29fc3853599346079fded.tar.xz host.fuwn.me-1177de9b041b759cc1c29fc3853599346079fded.zip | |
fix: update sharex snippet
Diffstat (limited to 'src')
| -rw-r--r-- | src/site/components/home/links/Links.vue | 9 |
1 files changed, 3 insertions, 6 deletions
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", |