Updated sharex.js

Oops, my bad, I forgot to include protocol into the URL field.
This commit is contained in:
Bobby Wibowo 2018-10-09 02:33:06 +07:00
parent 2f6c728e64
commit 57947df4db
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ page.prepareShareX = function () {
' "Name": "' + originClean + '",\r\n' +
' "DestinationType": "ImageUploader, FileUploader",\r\n' +
' "RequestType": "POST",\r\n' +
' "RequestURL": "' + origin + '/api/upload",\r\n' +
' "RequestURL": "' + location.protocol + '//' + origin + '/api/upload",\r\n' +
' "FileFormName": "files[]",\r\n' +
' "Headers": {\r\n' +
' "token": "' + page.token + '"\r\n' +
@ -22,4 +22,5 @@ page.prepareShareX = function () {
var sharexBlob = new Blob([sharexFile], { type: 'application/octet-binary' })
sharexElement.setAttribute('href', URL.createObjectURL(sharexBlob))
sharexElement.setAttribute('download', originClean + '.sxcu')
console.log(sharexFile)
}

View File

@ -15,7 +15,7 @@
v2: Images and config files (manifest.json, browserconfig.xml, etc).
v3: CSS and JS files (libs such as bulma, lazyload, etc).
#}
{% set v1 = "gmQt09yByV" %}
{% set v1 = "TC6WZLuKv0" %}
{% set v2 = "Ii3JYKIhb0" %}
{% set v3 = "HrvcYD3KTh" %}