You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314
  1. export * from './functions.any';
  2. /**
  3. * Loads config.js from a specific remote server.
  4. *
  5. * @param {string} url - The URL to load.
  6. * @returns {Promise<Object>}
  7. */
  8. export async function loadConfig(url: string) { // eslint-disable-line @typescript-eslint/no-unused-vars
  9. // Return "the config.js file" from the global scope - that is how the
  10. // Web app on both the client and the server was implemented before the
  11. // React Native app was even conceived.
  12. return window.config;
  13. }