Fix: active KG panel in google search was left uncolored

This commit is contained in:
shinigami-eyes 2019-10-06 11:10:23 +02:00
parent 0b8fd820fa
commit bf8f002b86
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ function getIdentifierFromElementImpl(element: HTMLAnchorElement): string {
if (element.classList.contains('tumblelog')) return element.textContent.substr(1) + '.tumblr.com';
const href = element.href;
if (href && !href.endsWith('#')) return getIdentifierFromURLImpl(tryParseURL(href));
if (href && (!href.endsWith('#') || href.includes('&stick='))) return getIdentifierFromURLImpl(tryParseURL(href));
return null;
}