Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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. }