Move Knoin routOff, routOn, routReload & setHash to rl.route.*

This commit is contained in:
djmaze 2020-09-16 20:35:29 +02:00
parent 03a40f3249
commit 467f615713
17 changed files with 83 additions and 111 deletions

View file

@ -14,8 +14,6 @@ import { initOnStartOrLangChange, initNotificationLanguage } from 'Common/Transl
import LanguageStore from 'Stores/Language';
import ThemeStore from 'Stores/Theme';
import { routeReload } from 'Knoin/Knoin';
const Settings = rl.settings;
class AbstractApp {
@ -89,7 +87,7 @@ class AbstractApp {
if (location.href !== logoutLink) {
setTimeout(() => (Settings.app('inIframe') ? parent : window).location.href = logoutLink, 100);
} else {
routeReload();
rl.route.reload();
}
}