mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
refactored layouts for extra window
This commit is contained in:
@@ -13,10 +13,6 @@ async function index(req, res) {
|
||||
|
||||
let view = req.cookies['trilium-device'] === 'mobile' ? 'mobile' : 'desktop';
|
||||
|
||||
if (req.query.extra) {
|
||||
view = 'extra';
|
||||
}
|
||||
|
||||
const csrfToken = req.csrfToken();
|
||||
log.info(`Generated CSRF token ${csrfToken} with secret ${res.getHeader('set-cookie')}`);
|
||||
|
||||
@@ -30,7 +26,8 @@ async function index(req, res) {
|
||||
maxSyncIdAtLoad: await sql.getValue("SELECT MAX(id) FROM sync"),
|
||||
instanceName: config.General ? config.General.instanceName : null,
|
||||
appCssNoteIds: await getAppCssNoteIds(),
|
||||
isDev: env.isDev()
|
||||
isDev: env.isDev(),
|
||||
isMainWindow: !req.query.extra
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user