mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-10-08 20:56:03 +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)
|
function fetchFiles(xml, path)
|
||||||
{
|
{
|
||||||
if (!parent.oc_requesttoken) {
|
if (!parent.OC.requestToken) {
|
||||||
return Promise.reject(new Error('oc_requesttoken missing'));
|
return Promise.reject(new Error('OC.requestToken missing'));
|
||||||
}
|
}
|
||||||
let cfg = rl.settings.get('Nextcloud');
|
let cfg = rl.settings.get('Nextcloud');
|
||||||
return fetch(cfg.WebDAV + '/files/' + cfg.UID + path, {
|
return fetch(cfg.WebDAV + '/files/' + cfg.UID + path, {
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
credentials: 'same-origin',
|
credentials: 'same-origin',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/xml; charset=utf-8',
|
'Content-Type': 'application/xml; charset=utf-8',
|
||||||
requesttoken: parent.oc_requesttoken
|
requesttoken: parent.OC.requestToken
|
||||||
},
|
},
|
||||||
body: xml
|
body: xml
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue