mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
mobile frontend is working again
This commit is contained in:
@@ -10,6 +10,7 @@ import TabManager from "./tab_manager.js";
|
||||
import treeService from "./tree.js";
|
||||
import Component from "../widgets/component.js";
|
||||
import keyboardActionsService from "./keyboard_actions.js";
|
||||
import MobileScreenSwitcherExecutor from "../widgets/mobile_screen_switcher.js";
|
||||
|
||||
class AppContext extends Component {
|
||||
setLayout(layout) {
|
||||
@@ -48,6 +49,10 @@ class AppContext extends Component {
|
||||
new Entrypoints()
|
||||
];
|
||||
|
||||
if (utils.isMobile()) {
|
||||
this.executors.push(new MobileScreenSwitcherExecutor());
|
||||
}
|
||||
|
||||
this.child(rootWidget);
|
||||
|
||||
for (const executor of this.executors) {
|
||||
|
||||
Reference in New Issue
Block a user