Skip to content

Commit 916381f

Browse files
committed
Show version warning only if the project allow it
1 parent 0bf5f28 commit 916381f

File tree

1 file changed

+3
-1
lines changed
  • readthedocs/core/static-src/core/js/doc-embed

1 file changed

+3
-1
lines changed

readthedocs/core/static-src/core/js/doc-embed/footer.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ function init() {
7171
dataType: "jsonp",
7272
data: get_data,
7373
success: function (data) {
74-
versionCompare.init(data.version_compare);
74+
if (data.show_version_warning) {
75+
versionCompare.init(data.version_compare);
76+
}
7577
injectFooter(data);
7678
setupBookmarkCSRFToken();
7779
},

0 commit comments

Comments
 (0)