|
|
@ -985,8 +985,7 @@ function shareResource() { |
|
|
|
try{ |
|
|
|
try{ |
|
|
|
log('1'); |
|
|
|
log('1'); |
|
|
|
let json = request('https://pasteme.tyrantg.com/api/update', { |
|
|
|
let json = request('https://pasteme.tyrantg.com/api/update', { |
|
|
|
"content-type": "application/x-www-form-urlencoded", |
|
|
|
"body": 'content='+JSON.stringify(text)+'&path='+it.path+'&auth_code='+it.token, |
|
|
|
"body": 'content='+textcontent+'&path='+it.path+'&auth_code='+it.token, |
|
|
|
|
|
|
|
"method": 'POST' |
|
|
|
"method": 'POST' |
|
|
|
}) |
|
|
|
}) |
|
|
|
log(json); |
|
|
|
log(json); |
|
|
|