fleet/frontend/router/url_prefix.ts
Gabe Hernandez efb35b537a
add prettier and have it format all fleet application code (#625)
* 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
2021-04-12 14:32:25 +01:00

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 || "";