shows user's bio

This commit is contained in:
pypy
2020-01-13 00:56:38 +09:00
parent 7a9855d12c
commit fcf973bb7e
2 changed files with 22 additions and 1 deletions

View File

@@ -5208,6 +5208,15 @@ CefSharp.BindObjectAsync(
this.saveMemo(D.id, D.memo);
};
$app.methods.getFaviconUrl = function (resource) {
try {
var url = new URL(resource);
return `https://www.google.com/s2/favicons?domain=${url.origin}`;
} catch (err) {
return '';
}
};
API.$on('LOGOUT', function () {
$app.userDialog.visible = false;
});