mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
feat(client): show warning when running through rosetta 2
This commit is contained in:
12
apps/server/src/routes/api/system_info.ts
Normal file
12
apps/server/src/routes/api/system_info.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { isRunningUnderRosetta2 } from "../../services/utils.js";
|
||||
import type { Request, Response } from "express";
|
||||
|
||||
function rosettaCheck(req: Request, res: Response) {
|
||||
res.json({
|
||||
isRunningUnderRosetta2: isRunningUnderRosetta2()
|
||||
});
|
||||
}
|
||||
|
||||
export default {
|
||||
rosettaCheck
|
||||
};
|
||||
Reference in New Issue
Block a user