(function () {
let commentURL = "https://comment.ifragasatt.se/count?customerId=9&articleId=di.klara.igHjqdCXcnovh5G4omL5cx&adFrequency=5&alias=true&articleUrl=https://www.di.se/nyheter/cheferna-om-nyckelfragan-for-naringslivet-politiken-behover-inse-allvaret/&articleTitle=Cheferna+om+nyckelfr%C3%A5gan+f%C3%B6r+n%C3%A4ringslivet%3A+%E2%80%9DPolitiken+beh%C3%B6ver+inse+allvaret+%E2%80%9D&cssUrl=https://di.se/styles/external/ifragasatt__c50588e884e82c1f9cd0767fbca13dfc6.css&articleDescription=Svenska+f%C3%B6retag+har+de+senaste+%C3%A5ren+blivit+internationellt+k%C3%A4nda+f%C3%B6r+att+ha+starkt+fokus+p%C3%A5+h%C3%A5llbarhetsfr%C3%A5gor.+Men+n%C3%A4r+det+g%C3%A4ller+att+genom+integration+och+m%C3%A5ngfald+bygga+h%C3%A5llbara+f%C3%B6retag+%E2%80%93+och+samh%C3%A4llen+%E2%80%93+har+vi+en+bit+kvar.+Det+st%C3%A5r+klart+n%C3%A4r+paneldeltagarna+i+h%C3%B6stens+f%C3%B6rsta+Di+H%C3%A5llbara+samtal+samlas+kring+dessa+%C3%A4mnen%2C+h%C3%B6gaktuella+inte+minst+genom+covid-19-krisen.&display=count&articleImage=https://cached-images.bonnier.news/swift/bilder/mly/c073164a-6a64-456a-ae2c-74dac86b9eaf.jpeg&articlePublishedTime=2020-08-31T23:14:07.631+02:00&articleTags=di.tag.hallbarhet%2Cdi.tag.hallbara-samtal&articleTitle=Cheferna+om+nyckelfr%C3%A5gan+f%C3%B6r+n%C3%A4ringslivet%3A+%E2%80%9DPolitiken+beh%C3%B6ver+inse+allvaret+%E2%80%9D&allowCommenting=false&allowCommentingText=Du kan endast kommentera på artiklar du får läsa&stickylogin=false&languageName=svenska&languageShortName=sv";
let allowSticky = commentURL.includes("stickylogin=true");
if (allowSticky) {
let cookie = document.cookie
.split('; ')
.find(row => row.startsWith('ifragasatt_cookie='));
if (cookie) {
let cookieValue = cookie.split('=')[1];
commentURL += "&cookie=" + cookieValue;
}
}
function getDomain(url) {
url = url.replace(/(https?:\/\/)?(www.)?/i, '');
if (url.indexOf('/') !== -1) {
url = url.split('/')[0];
}
return "." + url;
}
let ifrURL = "";
document.getElementById("ifragasatt-di.klara.igHjqdCXcnovh5G4omL5cx").innerHTML = ifrURL;
window.addEventListener('message', receiveMessage, false);
function receiveMessage(evt) {
const commentDiv = document.getElementById("ifragasatt-di.klara.igHjqdCXcnovh5G4omL5cx");
let domain = window.location.hostname.replace(/(https?:\/\/)?(www.)?/i, '');
if (domain.indexOf('/') !== -1) {
domain = domain.split('/')[0];
}
if (evt.data.id === "ifragasatt-di.klara.igHjqdCXcnovh5G4omL5cx" && commentDiv && commentDiv.firstChild) {
document.getElementById("ifragasatt-di.klara.igHjqdCXcnovh5G4omL5cx").firstChild.style.height = evt.data.height;
}
if (allowSticky && (evt.data.id === "ifr-set-cookie")) {
const token = evt.data.token;
if (token && token.length > 0) {
const maxAge = 30 * 24 * 60 * 60;
const cookie = "ifragasatt_cookie=" + token + "; max-age=" + maxAge + ";domain=." + domain + ";";
document.cookie = cookie;
}
}
if (evt.data.id === "ifr-remove-cookie") {
const cookie = "ifragasatt_cookie=;expires=Thu, 01 Jan 1970 00:00:01 GMT;max-age=-1;domain=." + domain + ";";
document.cookie = cookie;
commentURL = "https://comment.ifragasatt.se/count?customerId=9&articleId=di.klara.igHjqdCXcnovh5G4omL5cx&adFrequency=5&alias=true&articleUrl=https://www.di.se/nyheter/cheferna-om-nyckelfragan-for-naringslivet-politiken-behover-inse-allvaret/&articleTitle=Cheferna+om+nyckelfr%C3%A5gan+f%C3%B6r+n%C3%A4ringslivet%3A+%E2%80%9DPolitiken+beh%C3%B6ver+inse+allvaret+%E2%80%9D&cssUrl=https://di.se/styles/external/ifragasatt__c50588e884e82c1f9cd0767fbca13dfc6.css&articleDescription=Svenska+f%C3%B6retag+har+de+senaste+%C3%A5ren+blivit+internationellt+k%C3%A4nda+f%C3%B6r+att+ha+starkt+fokus+p%C3%A5+h%C3%A5llbarhetsfr%C3%A5gor.+Men+n%C3%A4r+det+g%C3%A4ller+att+genom+integration+och+m%C3%A5ngfald+bygga+h%C3%A5llbara+f%C3%B6retag+%E2%80%93+och+samh%C3%A4llen+%E2%80%93+har+vi+en+bit+kvar.+Det+st%C3%A5r+klart+n%C3%A4r+paneldeltagarna+i+h%C3%B6stens+f%C3%B6rsta+Di+H%C3%A5llbara+samtal+samlas+kring+dessa+%C3%A4mnen%2C+h%C3%B6gaktuella+inte+minst+genom+covid-19-krisen.&display=count&articleImage=https://cached-images.bonnier.news/swift/bilder/mly/c073164a-6a64-456a-ae2c-74dac86b9eaf.jpeg&articlePublishedTime=2020-08-31T23:14:07.631+02:00&articleTags=di.tag.hallbarhet%2Cdi.tag.hallbara-samtal&articleTitle=Cheferna+om+nyckelfr%C3%A5gan+f%C3%B6r+n%C3%A4ringslivet%3A+%E2%80%9DPolitiken+beh%C3%B6ver+inse+allvaret+%E2%80%9D&allowCommenting=false&allowCommentingText=Du kan endast kommentera på artiklar du får läsa&stickylogin=false&languageName=svenska&languageShortName=sv";
ifrURL = "";
document.getElementById("ifragasatt-di.klara.igHjqdCXcnovh5G4omL5cx").innerHTML = ifrURL;
}
}
})();