diff --git a/js/push.js b/js/push.js index 969f7fc..9981166 100644 --- a/js/push.js +++ b/js/push.js @@ -476,7 +476,7 @@ head.innerHTML = responseText; } - data.title = head.querySelector('title'); + data.title = head.querySelector('title') || document.querySelector('title'); var text = 'innerText' in data.title ? 'innerText' : 'textContent'; data.title = data.title && data.title[text].trim();