mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 10:15:52 +01:00
refactor(server/utils): isDev move to utils and replace fn with boolean
this value cannot change during runtime, => there is no need to have these checks as dynamic function, instead just export the boolean value directly
This commit is contained in:
committed by
Elian Doran
parent
13a1b42e12
commit
818cc30650
@@ -1,4 +1,4 @@
|
||||
import assetPath from "./asset_path.js";
|
||||
import env from "./env.js";
|
||||
import { isDev } from "./utils.js";
|
||||
|
||||
export default env.isDev() ? assetPath + "/app" : assetPath + "/app-dist";
|
||||
export default isDev ? assetPath + "/app" : assetPath + "/app-dist";
|
||||
Reference in New Issue
Block a user