mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #1745 from omnivore-app/fix/save-wrong-title
Fix incorrect title on page hosted on notion.site
This commit is contained in:
commit
4ed6adba41
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