Skip to content

Commit

Permalink
Merge pull request #154 from Eastern-Research-Group/coverage-upd-remo…
Browse files Browse the repository at this point in the history
…ve-upd

adjusting coverage and removal of update statement
  • Loading branch information
coobr01 authored Nov 11, 2024
2 parents 62d5a50 + 9519245 commit 24e7bec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
9 changes: 0 additions & 9 deletions app/app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,11 @@
/>
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:updated_time" content="2023-12-22" />
<meta
property="og:image:alt"
content="U.S. Environmental Protection Agency"
/>
<meta property="og:country_name" content="United States of America" />
<meta
property="article:published_time"
content="2021-12-06T00:00:00-05:00"
/>
<meta property="article:modified_time" content="2021-12-06" />
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:image:alt"
Expand Down Expand Up @@ -954,9 +948,6 @@ <h4>
For questions or comments, email EPA’s CGP staff at
<a href="mailto:[email protected]">[email protected]</a>.
</div>
<div class="l-page__footer-last-updated">
Last updated on April 23, 2024
</div>
</div>
</div>
</main>
Expand Down
11 changes: 8 additions & 3 deletions app/app/public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ define(['app/esriMap'], function (esriMap) {

document.getElementById('form').style.display = 'block';

/* v8 ignore start */
// We're ignoring as these are in support of legacy IE browsers

// if browser is ie11, fix the responsiveness of the datepicker inputs
if (!!window.MSInputMethodContext && !!document.documentMode) {
const element = document.getElementById('responsivebr');
Expand Down Expand Up @@ -35,6 +38,8 @@ define(['app/esriMap'], function (esriMap) {
};
}

/* v8 ignore stop */

window.lew_latitude = 'empty';
window.lew_longitude = 'empty';

Expand Down Expand Up @@ -171,6 +176,8 @@ define(['app/esriMap'], function (esriMap) {
let endday = endDate.slice(8);
let newendDate = endmonth + '/' + endday + '/' + endyear;

/* v8 ignore start */
// we don't run coverage against all the different environments, so ignore this block.
let api = null;
if (window.location.host.toLowerCase().startsWith('localhost')) {
api = 'http://localhost:' + window.location.port + '/v1/rfactor';
Expand All @@ -185,9 +192,7 @@ define(['app/esriMap'], function (esriMap) {
} else {
api = 'https://api.epa.gov/lew/v1/rfactor';
}

// old url
// let smartURL = window.location.protocol + "//" + window.location.host + "/v1/rfactor";
/* v8 ignore stop */

let webservice =
api +
Expand Down

0 comments on commit 24e7bec

Please sign in to comment.