1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-15 11:11:51 +00:00
tobspr_shapez.io/electron/src/config.ts

22 lines
693 B
TypeScript
Raw Normal View History

import { app } from "electron";
const disabledFeatures = ["HardwareMediaKeyHandling"];
app.commandLine.appendSwitch("disable-features", disabledFeatures.join(","));
export const defaultWindowTitle = "shapez CE";
app.setName("shapez-ce");
// This variable should be used to avoid situations where the app name
// wasn't set yet.
export const userData = app.getPath("userData");
export const pageUrl = app.isPackaged
? new URL("../index.html", import.meta.url).href
: "http://localhost:3005/";
export const switches = {
dev: app.commandLine.hasSwitch("dev"),
hideDevtools: app.commandLine.hasSwitch("hide-devtools"),
safeMode: app.commandLine.hasSwitch("safe-mode"),
};