Skip to content

Commit 121cde5

Browse files
committed
Show version warning only if the project allow it
1 parent 7748ef1 commit 121cde5

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
@@ -47,7 +47,9 @@ function init() {
4747
dataType: "jsonp",
4848
data: get_data,
4949
success: function (data) {
50-
versionCompare.init(data.version_compare);
50+
if (data.show_version_warning) {
51+
versionCompare.init(data.version_compare);
52+
}
5153
injectFooter(data);
5254
setupBookmarkCSRFToken();
5355
},

0 commit comments

Comments
 (0)