moodle_local_treestudyplan/amd/build/util/settings.min.js

3 lines
661 B
JavaScript
Raw Normal View History

2024-06-03 23:24:16 +02:00
define("local_treestudyplan/util/settings",["exports","core/ajax","core/notification"],(function(_exports,_ajax,_notification){var obj;Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.settings=function(key){const settings=loadsettings();return key in settings?settings[key]:null},_notification=(obj=_notification)&&obj.__esModule?obj:{default:obj};let settingcache=null;function loadsettings(){return settingcache||(0,_ajax.call)([{methodname:"local_treestudyplan_getsettings",args:{}}])[0].then((response=>{settingcache=response})).catch(_notification.default.exception),settingcache}loadsettings()}));
2024-04-21 23:08:03 +02:00
//# sourceMappingURL=settings.min.js.map