mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use document.title as default title
This commit is contained in:
parent
341f88c4d6
commit
c5519ca894
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
function getDocumentTitle () {
|
||||
const opengraphTitleEl = document.querySelector(SELECTORS.TITLE);
|
||||
const openGraphTitle = opengraphTitleEl && opengraphTitleEl.content;
|
||||
return openGraphTitle || document.title || '';
|
||||
return document.title || openGraphTitle || '';
|
||||
}
|
||||
|
||||
function getCanonicalUrl () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue