mirror of https://github.com/TriliumNext/Notes
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 directlypull/1073/head
parent
ca2bb94200
commit
31c46753de
@ -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";
|
||||
@ -1,7 +0,0 @@
|
||||
function isDev() {
|
||||
return !!(process.env.TRILIUM_ENV && process.env.TRILIUM_ENV === "dev");
|
||||
}
|
||||
|
||||
export default {
|
||||
isDev
|
||||
};
|
||||
Loading…
Reference in New Issue