When Does Cover Activate for Breakdown Help?
' +
'' +
'' +
'
';
var root = container.querySelector('.soro-blog');
// Handle browser back/forward buttons (not applicable in srcdoc iframes).
// A single-page site can remove the widget without a reload and add it again later, running
// this script anew. A widget no longer on the page stops listening, so it neither fails on its
// emptied element nor changes the title of the page the visitor is on.
if (!isSrcdocIframe) {
window.addEventListener('popstate', function onPopState() {
if (!root.isConnected) {
window.removeEventListener('popstate', onPopState);
return;
}
var slug = getRequestedSlug();
if (slug) {
showArticle(slug);
} else {
showList();
}
});
}
// Add back button handler (intercept for SPA navigation)
container.querySelector('.soro-blog-back').addEventListener('click