Skip to content

Commit

Permalink
🏷️ style: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
倏昱 committed Apr 18, 2023
1 parent 5dda690 commit 1830004
Show file tree
Hide file tree
Showing 9 changed files with 354 additions and 373 deletions.
1 change: 0 additions & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ $ npm start

- stable-diffusion-webui:https://github.com/AUTOMATIC1111/stable-diffusion-webui
- gradio-theme-gallery: https://huggingface.co/spaces/gradio/theme-gallery
- gradio-types: https://github.com/vnrat/sd-webui-3d-open-pose-editor/tree/4e7a400f7c42a5f9413d182413d950b2f5a58c79/src/%40types
- _before `1.0.0` version_
- sd-web-ui-quickcs: https://github.com/Gerschel/sd-web-ui-quickcss/
- Dark-Themes-SD-WebUI-Automatic1111: https://github.com/Nacurutu/Dark-Themes-SD-WebUI-Automatic1111
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ $ npm start

- stable-diffusion-webui:https://github.com/AUTOMATIC1111/stable-diffusion-webui
- gradio-theme-gallery: https://huggingface.co/spaces/gradio/theme-gallery
- gradio-types: https://github.com/vnrat/sd-webui-3d-open-pose-editor/tree/4e7a400f7c42a5f9413d182413d950b2f5a58c79/src/%40types
- _before `1.0.0` version_
- sd-web-ui-quickcs: https://github.com/Gerschel/sd-web-ui-quickcss/
- Dark-Themes-SD-WebUI-Automatic1111: https://github.com/Nacurutu/Dark-Themes-SD-WebUI-Automatic1111
Expand Down
28 changes: 14 additions & 14 deletions javascript/favicon.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
'use strict'
"use strict";
/**
* 处理网站的 favicon 图标
*/
class FaviconHandler {
/**
* 设置网站的 favicon 图标
*/
static setFavicon() {
const link = document.createElement('link')
link.rel = 'icon'
link.type = 'image/svg+xml'
link.href = 'https://gw.alipayobjects.com/zos/bmw-prod/51a51720-8a30-4430-b6c9-be5712364f04.svg'
document.getElementsByTagName('head')[0].appendChild(link)
}
/**
* 设置网站的 favicon 图标
*/
static setFavicon() {
const link = document.createElement('link');
link.rel = 'icon';
link.type = 'image/svg+xml';
link.href = 'https://gw.alipayobjects.com/zos/bmw-prod/51a51720-8a30-4430-b6c9-be5712364f04.svg';
document.getElementsByTagName('head')[0].appendChild(link);
}
}
document.addEventListener('DOMContentLoaded', () => {
FaviconHandler.setFavicon()
})
onUiLoaded(() => {
FaviconHandler.setFavicon();
});
Loading

0 comments on commit 1830004

Please sign in to comment.