mirror of
https://github.com/RGBCube/cinny
synced 2025-07-31 08:57:46 +00:00
Remove favicons-webpack-plugin (#811)
* Remove favicons-webpack-plugin * Copy android/* icons to dist * Add favicon ico
This commit is contained in:
parent
678e0dc6ac
commit
e6661d3b0d
26 changed files with 106 additions and 3418 deletions
|
@ -120,7 +120,9 @@ export function cssVar(name) {
|
|||
}
|
||||
|
||||
export function setFavicon(url) {
|
||||
document.querySelector('[rel=icon]').href = url;
|
||||
const favicon = document.querySelector('#favicon');
|
||||
if (!favicon) return;
|
||||
favicon.setAttribute('href', url);
|
||||
}
|
||||
|
||||
export function copyToClipboard(text) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue