mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 20:08:19 +00:00
[favicon] use file type icon as favicon for 'file view, shared file view' pages for different types of files (#5775)
This commit is contained in:
@@ -39,6 +39,11 @@ window.seafile = {
|
||||
assetsUrl,
|
||||
};
|
||||
|
||||
(function() {
|
||||
const fileIcon = Utils.getFileIconUrl(docName, 192);
|
||||
document.getElementById('favicon').href = fileIcon;
|
||||
})();
|
||||
|
||||
ReactDom.render(
|
||||
<I18nextProvider i18n={ i18n } >
|
||||
<Suspense fallback={<Loading />}>
|
||||
|
Reference in New Issue
Block a user