UNPKG

op-client-api-proof-of-concept

Version:
20 lines (19 loc) 559 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getConfiguration = void 0; var getConfiguration = function () { var configuration; fetch('/config.json') .then(function (response) { return response.json(); }) .then(function (json) { configuration = json; }) .catch(function (error) { console.error(error); }); console.log("Configuration: " + configuration); return configuration; }; exports.getConfiguration = getConfiguration;