Merge pull request #15859 from nextcloud/deprecate/oc-redirect-reload
Deprecate window.location wrappers for redirect and reload
This commit is contained in:
commit
bc276cdd83
4 changed files with 2 additions and 0 deletions
BIN
core/js/dist/login.js.map
vendored
BIN
core/js/dist/login.js.map
vendored
Binary file not shown.
BIN
core/js/dist/main.js.map
vendored
BIN
core/js/dist/main.js.map
vendored
Binary file not shown.
BIN
core/js/dist/maintenance.js.map
vendored
BIN
core/js/dist/maintenance.js.map
vendored
Binary file not shown.
|
@ -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