Browse Source

Merge pull request #735 from kmulvey/master

use current page's <title> if XHR response does not contain one
pull/610/merge
XhmikosR 10 years ago
parent
commit
d6d7fff571
  1. 2
      js/push.js

2
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();

Loading…
Cancel
Save