Skip to content

Commit dc93f65

Browse files
committed
chore: remove deprecated OC.Files call
Signed-off-by: grnd-alt <git@belakkaf.net>
1 parent d48060e commit dc93f65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import ClickOutside from 'vue-click-outside'
1414
import './shared-init.js'
1515
import './models/index.js'
1616
import { initSessions } from './sessions.js'
17+
import { getClient } from '@nextcloud/files/dav'
1718

1819
// the server snap.js conflicts with vertical scrolling so we disable it
1920
document.body.setAttribute('data-snap-ignore', 'true')
@@ -49,7 +50,7 @@ window.addEventListener('DOMContentLoaded', () => {
4950
window.OCA.Files = {}
5051
}
5152
// register unused client for the sidebar to have access to its parser methods
52-
Object.assign(window.OCA.Files, { App: { fileList: { filesClient: OC.Files.getClient() } } }, window.OCA.Files)
53+
Object.assign(window.OCA.Files, { App: { fileList: { filesClient: getClient() } } }, window.OCA.Files)
5354
})
5455

5556
/* eslint-disable-next-line no-new */

0 commit comments

Comments
 (0)