mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
added "switch to mobile version" button to web edition, closes #1889
This commit is contained in:
@@ -172,6 +172,12 @@ export default class Entrypoints extends Component {
|
||||
utils.reloadFrontendApp("Switching to desktop version");
|
||||
}
|
||||
|
||||
async switchToMobileVersionCommand() {
|
||||
utils.setCookie('trilium-device', 'mobile');
|
||||
|
||||
utils.reloadFrontendApp("Switching to mobile version");
|
||||
}
|
||||
|
||||
async openInWindowCommand({notePath, hoistedNoteId}) {
|
||||
if (!hoistedNoteId) {
|
||||
hoistedNoteId = 'root';
|
||||
|
||||
Reference in New Issue
Block a user