Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion core/js/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
}

setTimeout(function() {
OC.redirect(window.location.href)
window.location = window.location.href
window.location.reload()
}, 3000)
}
})
Expand Down
5 changes: 1 addition & 4 deletions core/src/OC/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ import {
} from './menu.js'
import * as MimeType from './mimeType.js'
import msg from './msg.js'
import { redirect, reload } from './navigation.js'
import Notification from './notification.js'
import PasswordConfirmation from './password-confirmation.js'
import Plugins from './plugins.js'
Expand Down Expand Up @@ -241,8 +240,6 @@ export default {
* @deprecated 19.0.0 use `imagePath` from https://www.npmjs.com/package/@nextcloud/router
*/
imagePath,
redirect,
reload,
requestToken: getRequestToken(),
/**
* @deprecated 19.0.0 use `linkTo` from https://www.npmjs.com/package/@nextcloud/router
Expand Down Expand Up @@ -281,5 +278,5 @@ subscribe('csrf-token-update', (e) => {
OC.requestToken = e.token

// Logging might help debug (Sentry) issues
logger.info('OC.requestToken changed', { token: e.token})
logger.info('OC.requestToken changed', { token: e.token })
})
21 changes: 0 additions & 21 deletions core/src/OC/navigation.js

This file was deleted.

2 changes: 1 addition & 1 deletion core/src/OC/xhr-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function processAjaxError(xhr) {
Notification.showUpdate(n('core', 'Problem loading page, reloading in %n second', 'Problem loading page, reloading in %n seconds', seconds - timer))
if (timer >= seconds) {
clearInterval(interval)
OC.reload()
window.location.reload()
}
timer++
},
Expand Down
Loading