Remove force_redirect because now it's unused

This commit is contained in:
Alexandre Aubin 2019-11-08 12:30:14 +01:00
parent 4296155a58
commit 6177044381

View file

@ -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');
}
});
})();