Skip to content

Commit

Permalink
up up
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnnsrs committed Nov 25, 2024
1 parent 721f019 commit aa7fd31
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<meta charset="UTF-8" />
<title>Orkestrator</title>
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<script>
// General Configuration for runtime environment
window.ORKESTRATOR_APP_BASENAME = 'orkestrator'; "If not set, it will be set to ''";
</script>
</head>

<body>
Expand Down
14 changes: 13 additions & 1 deletion src/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@

import { Manifest } from "./lib/fakts";

export const baseName = "orkestrator";
declare global {
interface Window {
__ORKESTRATOR_BASE_NAME__: string;
}
}

export const windowBaseName =
window.__ORKESTRATOR_BASE_NAME__ &&
window.__ORKESTRATOR_BASE_NAME__ != "__ORKESTRATOR_BASE_NAME__"
? window.__ORKESTRATOR_BASE_NAME__
: "";

export const baseName = window.electron ? "" : "orkestrator";

export const manifest: Manifest = {
version: "0.0.1",
Expand Down

0 comments on commit aa7fd31

Please sign in to comment.