1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-02 04:48:57 +02:00

resolve shadow warning

This commit is contained in:
Kyle Spearrin 2017-11-20 09:06:36 -05:00
parent 984bd27422
commit 4ceac37849

View File

@ -192,8 +192,8 @@ export default class UtilsService implements UtilsServiceInterface {
return url.hostname;
}
const domain = tldjs.getDomain(url.hostname);
return domain ? domain : url.hostname;
const urlDomain = tldjs.getDomain(url.hostname);
return urlDomain != null ? urlDomain : url.hostname;
} catch (e) { }
}