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 442B

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<IConfig>}
  7. */
  8. export async function loadConfig(_url?: string) {
  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. }