securityos/components/apps/BoxedWine/config.ts

16 lines
548 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import processDirectory from "contexts/process/directory";
const { height = 0, width = 0 } = processDirectory.BoxedWine.defaultSize || {};
const configParams = {
"inline-default-ondemand-root-overlay": "/wine1.7.55-v8-min-online",
ondemand: "root",
resolution: `${width}x${height}`,
root: "/fullWine1.7.55-v8",
};
export const getConfig = (dynamicConfig: Record<string, string>): string =>
[...Object.entries(configParams), ...Object.entries(dynamicConfig)]
.map(([key, value]) => `${key}=${value}`)
.join("&");