Files
RetirementCalculator/src/views/partials/scriptLoader.ejs
T

8 lines
294 B
Plaintext

<!-- Get geolocation if not in session and load conversion rates -->
<script src="/static/scripts/geolocation.js"></script>
<script>
// If no geoData provided thorugh EJS, send update request to backend
let country = "<%= geoData.country %>";
if (!country) getLocation();
</script>