diff --git a/js/push.js b/js/push.js index 07bf70c..6039bb7 100644 --- a/js/push.js +++ b/js/push.js @@ -464,7 +464,7 @@ head.innerHTML = responseText; } - data.title = head.querySelector('title') ? head.querySelector('title') : document.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();