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

This reverts commit 7690cc6ca5.
This commit is contained in:
Guo Xiang Tan 2017-07-24 09:40:57 +09:00
parent 9e0381396f
commit 887c3b66f5
1 changed files with 2 additions and 1 deletions

View File

@ -164,7 +164,8 @@ 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) {
host = h('span.domain', domain); const s = domain.split('.');
host = h('span.domain', s[s.length-2] + "." + s[s.length-1]);
} }
} }