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.ts 495B

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