Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions core/src/OC/host.js

This file was deleted.

14 changes: 0 additions & 14 deletions core/src/OC/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ import { currentUser, getCurrentUser } from './currentuser.js'
import { debug } from './debug.js'
import Dialogs from './dialogs.js'
import EventSource from './eventsource.js'
import {
getHost,
getHostName,
getPort,
getProtocol,
} from './host.js'
import L10N from './l10n.js'
import {
hideMenus,
Expand Down Expand Up @@ -179,14 +173,6 @@ export default {
*/
joinPaths,

/**
* Host (url) helpers
*/
getHost,
getHostName,
getPort,
getProtocol,

/**
* @deprecated 20.0.0 use `getCanonicalLocale` from https://www.npmjs.com/package/@nextcloud/l10n
*/
Expand Down
9 changes: 5 additions & 4 deletions core/src/files/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { getCurrentUser } from '@nextcloud/auth'
import escapeHTML from 'escape-html'
import $ from 'jquery'
import _ from 'underscore'
Expand Down Expand Up @@ -958,10 +959,10 @@ import logger from '../logger.js'
}

const client = new OC.Files.Client({
host: OC.getHost(),
port: OC.getPort(),
root: OC.linkToRemoteBase('dav') + '/files/' + OC.getCurrentUser().uid,
useHTTPS: OC.getProtocol() === 'https',
host: window.location.host,
port: window.location.port,
root: OC.linkToRemoteBase('dav') + '/files/' + getCurrentUser().uid,
useHTTPS: window.location.protocol.startsWith('https'),
})
OC.Files._defaultClient = client
return client
Expand Down
4 changes: 2 additions & 2 deletions dist/core-files_client.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-files_client.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/core-login.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-login.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/core-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-main.js.map

Large diffs are not rendered by default.

Loading