aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-10-12 20:16:23 +0900
committerPitu <[email protected]>2019-10-12 20:16:23 +0900
commit1177de9b041b759cc1c29fc3853599346079fded (patch)
tree21c5c14965803cb7210bb619298cda1260962999 /src
parentfix: we don't want non-admins to access the settings section (diff)
downloadhost.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.vue9
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",