From ac0e414a181b565f2861bdec55603f04b5d46440 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 3 Jun 2019 15:59:31 +0200 Subject: Deprecate window.location wrappers for redirect and reload Signed-off-by: Christoph Wurst --- core/src/OC/navigation.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/src') 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() -- cgit v1.2.3