src/application.js
/**
 * Initializes the application and sets
 * event listeners
 */
Initializes the application and sets
event listeners
Initializes the application and sets event listeners
function preInit () {
  if (Modernizr.history) {
    window.history.replaceState(null, null, document.URL)
  }
  router()
  cacheCurrentLocation()
}
function preInit ( ) { if ( Modernizr . history ) { window . history . replaceState ( null , null , document . URL ) } router ( ) cacheCurrentLocation ( ) }
Initializes the application and sets
 event listeners
Initializes the application and sets event listeners
// Force initial page load to have a triggered onpopstate // Requests browser's permission to use // geolocator upon page load, if necessary