let currentUser = JSON.parse(localStorage.getItem('t01_user'));

if(!currentUser ) { app.views.main.router.navigate('/signin/');}

const userAgent = navigator.userAgent;

console.log(userAgent);

     fetch('https://api.ipify.org?format=json')

         .then(response => response.json())

         .then(data => {

             const ipAddress = data.ip;

             console.log('User IP Address:', ipAddress);

             // Use the IP address as needed

         })

         .catch(error => {

             console.error('Error fetching IP address:', error);

         });

//console.log(app.views.current)

// In page events:

/*

$$(document).on('page:init', function (e) {

  // Page Data contains all required information about loaded and initialized page

  var page = e.detail;

  console.log(page)

})*/