From ac0e414a181b565f2861bdec55603f04b5d46440 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 3 Jun 2019 15:59:31 +0200 Subject: [PATCH] Deprecate window.location wrappers for redirect and reload Signed-off-by: Christoph Wurst --- core/js/dist/login.js.map | Bin 2416870 -> 2416981 bytes core/js/dist/main.js.map | Bin 4353657 -> 4353768 bytes core/js/dist/maintenance.js.map | Bin 1911512 -> 1911623 bytes core/src/OC/navigation.js | 2 ++ 4 files changed, 2 insertions(+) diff --git a/core/js/dist/login.js.map b/core/js/dist/login.js.map index fd3a78051374e6c1eeaf4b93c6e7e65ff7f13b30..2bb799f24b412f8706dadf758de8d56858ee5e49 100644 GIT binary patch delta 210 zcmW;AOAf(60Eh7mqo~&~UPW84L>Cf=U}M7pT!1ZNiNz#6Ko@fY2aq(nCZXGII!CZ| z1%DR5#rM7M9*G|wISV2ZBI(nkB3pS<)X{f~{p>IuFXwA{Rn#IIH&PT*pg|fkkOdub zkcR>kp#%)dL8L0rkBo18ByFFY^77)VUpjIUa_#?I7ILUU4eHQ4D`v3p{ delta 195 zcmW;8yAHun0D$2fj$7T;tuA#P4Bmpp!UK2(wlb=rNgtp?pF=`AlhCz`lXwBE$?lKg zOTOpL6Yr}hj*f6*PW&tnN?5+FB1|GnrX|Mk$<|G9Rkqly~pXrKuLEws@=7bbe>V}Kz>fgO&O@dMgoUp@c; diff --git a/core/js/dist/main.js.map b/core/js/dist/main.js.map index da7fb81071b314d878d3fbe7cce8705827cdd993..ac56ffb54ddb468e4d8d44189e97e97976ce3003 100644 GIT binary patch delta 328 zcmWm2yH3Jj06^iiSXA%=tq3XwDhL&ki+54ED2t26nP5T!Q4SABiaW31#_8}4=lo9x^6YOQ_bkbhEtj?Mt2Bhvv7d!vdOjbzwXeI(+r!36&f}Wz$StSVGG;X8IMGG_GC|7dg{l}b$h7lb*D^s zr~UrXY&o;9YK{n^h{3=v;z(c*Nu*$6A88yQgF|GILmmYj;TR`4#Tm|VflCx|g=^fP Ogfc3qj#cgUr9KCU(Qak{ delta 313 zcmWN=IZwi10D$4NQbYtT6c28dL(qD1E8Z?H66OXr!U7xU3P}^v&F%XKtSls~-~SMI z{sNotlRT?GM_n%+b!02HYH!%Cxz>`(K(wWn^A0};?_Y0b^$)UMdYk|N diff --git a/core/js/dist/maintenance.js.map b/core/js/dist/maintenance.js.map index 134aaf21f6dfea29459eb0fcb5092307314ae3d0..b092362d781cca9ee786acb2ba0c903672f7936d 100644 GIT binary patch delta 202 zcmca{wdDA7N!>FEiCfAj78HGdRa6yi~UMm%A9rlJv00YopiFD936d&3|w{m z9Uc9PLv(^29fP&gU3EgeGTRG#S%8=oh}nRc9f&!Am=lP(fS4PId4QM~i1~n+e|urC zz^50}7pDoTPk);%C_BBlOfVY6)nF@1&B;$p0gJZZD-#4_As`k8Vi6z~1!6HE76)Pp SAeIDTDIk{Key>dC*Jc0>iBZ)6 delta 185 zcmX?pt>nhll7<$>7N!>FEiCfAj3v_*dRa6yOZ`e*%A9rlJ#+jDopiFD936d&3|w{m z9Uc9PLv(^29fP&gU3Egea@z}gS%8=oh}nRc9f&!Am=lP(fS4PId4QM~i1~n+e|urC zz^50}Qze82rY|oOj0UsXeai)bSO|!Pfmj5HMS)lhh{b_e0*EDnSPF=xxBHgM{Mrlv DK`TRR diff --git a/core/src/OC/navigation.js b/core/src/OC/navigation.js index c841ed5751..b37d339b41 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()