Browse Source

default to current page <title>

pull/735/head
Kevin Mulvey 10 years ago
parent
commit
9bd27e0d83
  1. 2
      js/push.js

2
js/push.js

@ -464,7 +464,7 @@
head.innerHTML = responseText;
}
data.title = head.querySelector('title');
data.title = head.querySelector('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