mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Deprecate window.location wrappers for redirect and reload
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
0f0dfc837e
commit
ac0e414a18
4 changed files with 5 additions and 3 deletions
2
core/js/dist/login.js.map
vendored
2
core/js/dist/login.js.map
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/main.js.map
vendored
2
core/js/dist/main.js.map
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/maintenance.js.map
vendored
2
core/js/dist/maintenance.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -22,10 +22,12 @@
|
|||
/**
|
||||
* Redirect to the target URL, can also be used for downloads.
|
||||
* @param {string} targetURL URL to redirect to
|
||||
* @deprecated 17.0.0 use window.location directly
|
||||
*/
|
||||
export const redirect = targetURL => window.location = targetURL
|
||||
|
||||
/**
|
||||
* Reloads the current page
|
||||
* @deprecated 17.0.0 use window.location.reload directly
|
||||
*/
|
||||
export const reload = () => window.location.reload()
|
||||
|
|
|
|||
Loading…
Reference in a new issue