UX: Don't try to figure out root domain.

This commit is contained in:
Guo Xiang Tan 2017-03-31 17:24:24 +08:00
parent 04edbea693
commit 7690cc6ca5
1 changed files with 1 additions and 2 deletions

View File

@ -159,8 +159,7 @@ createWidget('topic-map-expanded', {
if (l.title && l.title.length) { if (l.title && l.title.length) {
const domain = l.domain; const domain = l.domain;
if (domain && domain.length) { if (domain && domain.length) {
const s = domain.split('.'); host = h('span.domain', domain);
host = h('span.domain', s[s.length-2] + "." + s[s.length-1]);
} }
} }