UNPKG

@ou-imdt/utils

Version:

Utility library for interactive media development

10 lines (9 loc) 358 B
import loadData from './loadData'; /** * Loads data from the VLE server for the global widget context. * @param {array} fields - Array of names - data to load. * @returns {Promise<any>} A promise that resolves with the loaded data, or rejects on error. */ export default function loadVLEGlobalData(fields) { return loadData({ user: false, fields }); }