Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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