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.
2 parents 31043bd + 66a7b6d commit 83ff630Copy full SHA for 83ff630
readthedocs/core/static-src/core/js/doc-embed/footer.js
@@ -28,6 +28,15 @@ function init() {
28
get_data['subproject'] = true;
29
}
30
31
+ if (typeof URL !== 'undefined' && typeof URLSearchParams !== 'undefined') {
32
+ // Force a specific promo to be displayed
33
+ var params = new URL(window.location).searchParams;
34
+ var force_promo = params.get('promo');
35
+ if (force_promo) {
36
+ get_data['promo'] = force_promo;
37
+ }
38
39
+
40
// Get footer HTML from API and inject it into the page.
41
$.ajax({
42
url: rtd.api_host + "/api/v2/footer_html/",
0 commit comments