diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-06-03 15:59:31 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-06-25 21:39:37 +0200 |
commit | ac0e414a181b565f2861bdec55603f04b5d46440 (patch) | |
tree | b8d5127911cb233c43d1d3eb156323d33036849b /core/src | |
parent | 0f0dfc837e24e30b461e60dc7ec93b16e55c9bb3 (diff) | |
download | nextcloud-server-ac0e414a181b565f2861bdec55603f04b5d46440.tar.gz nextcloud-server-ac0e414a181b565f2861bdec55603f04b5d46440.zip |
Deprecate window.location wrappers for redirect and reload
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/OC/navigation.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/OC/navigation.js b/core/src/OC/navigation.js index c841ed5751e..b37d339b41b 100644 --- a/core/src/OC/navigation.js +++ b/core/src/OC/navigation.js @@ -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() |