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.

functions.web.js 503B

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