(function () { let commentURL = "https://comment.ifragasatt.se/comment?customerId=5&articleId=dn.epi.2446007&articleUrl=https://www.dn.se/nyheter/sverige/stora-storningar-i-stockholms-tagtrafik/&articleTitle=Stora+st%C3%B6rningar+i+Stockholms+t%C3%A5gtrafik&commentsToShow=3&articleDescription=T%C3%A5gtrafiken+mellan+Stockholm+och+Malm%C3%B6+respektive+G%C3%B6teborg+lider+av+omfattande+st%C3%B6rningar+fram+till+tisdagen.+Orsaken+%C3%A4r+ett+sp%C3%A5rfel+mellan+Flemingsberg+och+S%C3%B6dert%C3%A4lje.&articleImage=undefined&articlePublishedTime=2019-10-21T06:05:38.000+02:00&articleTags=dn.tag.tag&articleTitle=Stora+st%C3%B6rningar+i+Stockholms+t%C3%A5gtrafik&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-dn.epi.2446007").innerHTML = ifrURL; window.addEventListener('message', receiveMessage, false); function receiveMessage(evt) { const commentDiv = document.getElementById("ifragasatt-dn.epi.2446007"); let domain = window.location.hostname.replace(/(https?:\/\/)?(www.)?/i, ''); if (domain.indexOf('/') !== -1) { domain = domain.split('/')[0]; } if (evt.data.id === "ifragasatt-dn.epi.2446007" && commentDiv && commentDiv.firstChild) { document.getElementById("ifragasatt-dn.epi.2446007").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/comment?customerId=5&articleId=dn.epi.2446007&articleUrl=https://www.dn.se/nyheter/sverige/stora-storningar-i-stockholms-tagtrafik/&articleTitle=Stora+st%C3%B6rningar+i+Stockholms+t%C3%A5gtrafik&commentsToShow=3&articleDescription=T%C3%A5gtrafiken+mellan+Stockholm+och+Malm%C3%B6+respektive+G%C3%B6teborg+lider+av+omfattande+st%C3%B6rningar+fram+till+tisdagen.+Orsaken+%C3%A4r+ett+sp%C3%A5rfel+mellan+Flemingsberg+och+S%C3%B6dert%C3%A4lje.&articleImage=undefined&articlePublishedTime=2019-10-21T06:05:38.000+02:00&articleTags=dn.tag.tag&articleTitle=Stora+st%C3%B6rningar+i+Stockholms+t%C3%A5gtrafik&stickylogin=false&languageName=svenska&languageShortName=sv"; ifrURL = ""; document.getElementById("ifragasatt-dn.epi.2446007").innerHTML = ifrURL; } } })();