op-client-api-proof-of-concept
Version:
OP Client API Proof of concept
20 lines (19 loc) • 559 B
JavaScript
;
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;