Skip to content

Commit e381d86

Browse files
authored
MMT-2306 Update FBM link for dMMT (#618)
* MMT-2306 updating footer * MMT-2306 build without byebug
1 parent 52d5859 commit e381d86

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

app/views/shared/_footer.html.erb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010

1111
<!-- Scripts that should be loaded in the footer to allow for faster page loads -->
1212
<% unless Rails.env.test? %>
13-
<script id="feedback-tag" src="https://fbm.earthdata.nasa.gov/for/MMT/feedback.js"></script>
14-
<script type="text/javascript">
15-
(function() {
16-
var initFeedback = function() {
17-
window.feedback.init({showIcon: false});
18-
}
19-
if (window.feedback) {
20-
initFeedback();
21-
}
22-
else {
23-
document.getElementById('feedback-tag').onload = initFeedback;
24-
}
25-
})();
26-
</script>
13+
<script id="feedback-tag" src="https://fbm.earthdata.nasa.gov/for/<%= Rails.configuration.proposal_mode ? 'Draft%20MMT' : 'MMT' %>/feedback.js"></script>
14+
<script type="text/javascript">
15+
(function() {
16+
var initFeedback = function() {
17+
window.feedback.init({showIcon: false});
18+
}
19+
if (window.feedback) {
20+
initFeedback();
21+
}
22+
else {
23+
document.getElementById('feedback-tag').onload = initFeedback;
24+
}
25+
})();
26+
</script>
2727
<% end %>

0 commit comments

Comments
 (0)