Error loading Partial View script (file: ~/Views/MacroPartials/EMEASiteContactUs.cshtml)
$(document).ready(function () { let siteName = $('#locationRegionHeader').text().trim(); let location = '' if (location.length == 0) { location = $('#locationCountryHeader').text().trim(); SetLocation(location); } else { $('#locationCountryHeader').text(''); $('#locationCountryFooter').text(''); } let url = '/umbraco/surface/emeasite/GetChannels'; const model = { SiteName: siteName, Tag: location }; GetBroadCaster(url, model, 'https://calama.int.bbcstudios.com//api/assets/'); }); function SetLocation(loc) { $.ajax({ type: "Get", url: '/SetLocation/' + loc, async: true, success: function () { }, error: function (xhr, status, error) { console.log("Unable to switch location. status" + status + " error: " + error + "xhr " + xhr); } }); }