mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	mobile detection
This commit is contained in:
		| @@ -9,7 +9,9 @@ const optionService = require('../services/options'); | ||||
| async function index(req, res) { | ||||
|     const options = await optionService.getOptionsMap(); | ||||
|  | ||||
|     res.render('index', { | ||||
|     const view = req.cookies['trilium-device'] === 'mobile' ? 'mobile' : 'desktop'; | ||||
|  | ||||
|     res.render(view, { | ||||
|         theme: options.theme, | ||||
|         leftPaneMinWidth: parseInt(options.leftPaneMinWidth), | ||||
|         leftPaneWidthPercent: parseInt(options.leftPaneWidthPercent), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user