mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-29 16:34:21 +08:00
oc_requesttoken is deprecated: use OC.requestToken instead
This commit is contained in:
parent
0ff69776ed
commit
4fb0199a0f
1 changed files with 3 additions and 3 deletions
|
@ -31,8 +31,8 @@
|
|||
|
||||
function fetchFiles(xml, path)
|
||||
{
|
||||
if (!parent.oc_requesttoken) {
|
||||
return Promise.reject(new Error('oc_requesttoken missing'));
|
||||
if (!parent.OC.requestToken) {
|
||||
return Promise.reject(new Error('OC.requestToken missing'));
|
||||
}
|
||||
let cfg = rl.settings.get('Nextcloud');
|
||||
return fetch(cfg.WebDAV + '/files/' + cfg.UID + path, {
|
||||
|
@ -43,7 +43,7 @@
|
|||
credentials: 'same-origin',
|
||||
headers: {
|
||||
'Content-Type': 'application/xml; charset=utf-8',
|
||||
requesttoken: parent.oc_requesttoken
|
||||
requesttoken: parent.OC.requestToken
|
||||
},
|
||||
body: xml
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue