From 61770443813a982d865d6d2eaa7f7f0ee2e0be9a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 8 Nov 2019 12:30:14 +0100 Subject: [PATCH] Remove force_redirect because now it's unused --- src/js/yunohost/helpers.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/js/yunohost/helpers.js b/src/js/yunohost/helpers.js index 59e70ed0..0cbc3b3f 100644 --- a/src/js/yunohost/helpers.js +++ b/src/js/yunohost/helpers.js @@ -525,20 +525,7 @@ c.hideLoader(); }); }); - }, - - force_redirect: function(to) { - c = this; - // This is a copy-pasta of some of the redirect/refresh code of - // sammy.js because for some reason calling the origina - // redirect/refresh function in some context does not work >.> - // (e.g. if you're already on the page) - c.trigger('redirect', {to: to}); - c.app.last_location = c.path; - c.app.setLocation(to); - c.app.trigger('location-changed'); } - }); })();