15 lines
495 B
TypeScript
15 lines
495 B
TypeScript
export * from './functions.any';
|
|
|
|
/**
|
|
* Loads config.js from a specific remote server.
|
|
*
|
|
* @param {string} url - The URL to load.
|
|
* @returns {Promise<Object>}
|
|
*/
|
|
export async function loadConfig(url: string) { // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
// Return "the config.js file" from the global scope - that is how the
|
|
// Web app on both the client and the server was implemented before the
|
|
// React Native app was even conceived.
|
|
return window.config;
|
|
}
|