mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
efb35b537a
* add prettier and have it format all js code except website: : * trying running prettier check in CI * fix runs on in CI * change CI job name * fix prettier erros and fix CI
13 lines
410 B
TypeScript
13 lines
410 B
TypeScript
// Encapsulate the URL Prefix so that this is the only module that
|
|
// needs to access the global. All other modules should use this one.
|
|
|
|
// extending window interface to include urlPrefix.
|
|
// https://stackoverflow.com/questions/12709074/how-do-you-explicitly-set-a-new-property-on-window-in-typescript
|
|
declare global {
|
|
interface Window {
|
|
urlPrefix: string;
|
|
}
|
|
}
|
|
|
|
export default window.urlPrefix || "";
|