Spaces:
Runtime error
Runtime error
Update templates/company_profile.html
Browse files263 unmodified lines264265266267268269270271272273274275276263 unmodified linesdocument.addEventListener('DOMContentLoaded', function () {const role = sessionStorage.getItem('userRole');console.log('Current role:', role); // Debug statement to check the roleif (role === 'admin') {document.getElementById('add').style.display = 'block';} else {document.getElementById('add').style.display = 'none';}fetchCompanies();});window.addEventListener('pageshow', function (event) {263 unmodified lines264265266267268269270271272263 unmodified linesdocument.addEventListener('DOMContentLoaded', function () {const role = sessionStorage.getItem('userRole');console.log('Current role:', role); // Debug statement to checdocument.getElementById('add').style.display = 'block';fetchCompanies();});window.addEventListener('pageshow', function (event) {
templates/company_profile.html+3-7