38 lines
858 B
JavaScript
38 lines
858 B
JavaScript
|
/*! DSFR v1.11.2 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions) */
|
||
|
|
||
|
const config = {
|
||
|
prefix: 'fr',
|
||
|
namespace: 'dsfr',
|
||
|
organisation: '@gouvfr',
|
||
|
version: '1.11.2'
|
||
|
};
|
||
|
|
||
|
const patch = {
|
||
|
namespace: 'a4e35ba2a938ba9d007689dbf3f46acbb9807869'
|
||
|
};
|
||
|
|
||
|
const executor = {};
|
||
|
const promise = new Promise((resolve, reject) => {
|
||
|
executor.resolve = resolve;
|
||
|
executor.reject = reject;
|
||
|
});
|
||
|
|
||
|
window[patch.namespace] = {
|
||
|
configuration: window[config.namespace],
|
||
|
promise: promise
|
||
|
};
|
||
|
|
||
|
const patchInternals = () => {
|
||
|
const api = window[config.namespace];
|
||
|
if (!api || !api.internals) {
|
||
|
requestAnimationFrame(patchInternals);
|
||
|
return;
|
||
|
}
|
||
|
if (api.inspector.trace) api.inspector.log = api.inspector.trace;
|
||
|
|
||
|
executor.resolve();
|
||
|
};
|
||
|
|
||
|
patchInternals();
|
||
|
//# sourceMappingURL=patch.module.js.map
|