mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
results of npx prettier
This commit is contained in:
@@ -16,7 +16,7 @@ function checkAuth(req: Request, res: Response, next: NextFunction) {
|
||||
if (!sqlInit.isDbInitialized()) {
|
||||
res.redirect("setup");
|
||||
} else if (!req.session.loggedIn && !isElectron && !noAuthentication) {
|
||||
const redirectToShare = options.getOption('redirectBareDomain') === 'true';
|
||||
const redirectToShare = options.getOption("redirectBareDomain") === "true";
|
||||
res.redirect(redirectToShare ? "share" : "login");
|
||||
} else {
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user