Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit 48abc07

Browse files
Alexander MatyushentsevAlexander Matyushentsev
authored andcommitted
docs: load version selector with delay
1 parent 17ed41e commit 48abc07

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/assets/versions.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(function() {
1+
setTimeout(function() {
22
const callbackName = 'callback_' + new Date().getTime();
33
window[callbackName] = function (response) {
44
const div = document.createElement('div');
@@ -22,5 +22,4 @@
2222
'callback=' + callbackName + '&project=argocd-notifications&page=&theme=mkdocs&format=jsonp&docroot=docs&source_suffix=.md&version=' + (window['READTHEDOCS_DATA'] || { version: 'latest' }).version;
2323

2424
document.getElementsByTagName('head')[0].appendChild(script);
25-
})();
26-
25+
}, 50);

0 commit comments

Comments
 (0)