We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
window
1 parent 79b6e3b commit 19460d7Copy full SHA for 19460d7
src/readthedocs-config.js
@@ -114,6 +114,10 @@ export function getReadTheDocsConfig(sendUrlParam) {
114
// Expose `dataUser` if available or the `data` already requested.
115
const dataEvent = dataUser !== undefined ? dataUser : data;
116
117
+ // Add the data to the window so scripts loaded after the initial
118
+ // event was fired can still get access to the data
119
+ globalThis.ReadTheDocsEventData = new ReadTheDocsEventData(dataEvent);
120
+
121
// Trigger the addons data ready CustomEvent to with the data the user is expecting.
122
return dispatchEvent(
123
EVENT_READTHEDOCS_ADDONS_DATA_READY,
0 commit comments