Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
docs: load version selector with delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Matyushentsev authored and Alexander Matyushentsev committed Jan 2, 2021
1 parent 17ed41e commit 48abc07
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/assets/versions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function() {
setTimeout(function() {
const callbackName = 'callback_' + new Date().getTime();
window[callbackName] = function (response) {
const div = document.createElement('div');
Expand All @@ -22,5 +22,4 @@
'callback=' + callbackName + '&project=argocd-notifications&page=&theme=mkdocs&format=jsonp&docroot=docs&source_suffix=.md&version=' + (window['READTHEDOCS_DATA'] || { version: 'latest' }).version;

document.getElementsByTagName('head')[0].appendChild(script);
})();

}, 50);

0 comments on commit 48abc07

Please sign in to comment.