Spaces:
Running
Running
Add emoji SVG favicon fallback with data URI - should work across all platforms
Browse files- index.html +2 -1
- public/gradio-favicon.ico +37 -0
- vite.config.ts +1 -1
index.html
CHANGED
|
@@ -2,7 +2,8 @@
|
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8" />
|
| 5 |
-
<link rel="icon" href="
|
|
|
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
<title>@gradio/dataframe Demo</title>
|
| 8 |
</head>
|
|
|
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8" />
|
| 5 |
+
<link rel="icon" href="/favicon.ico" />
|
| 6 |
+
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>📊</text></svg>" />
|
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 8 |
<title>@gradio/dataframe Demo</title>
|
| 9 |
</head>
|
public/gradio-favicon.ico
ADDED
|
|
vite.config.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
| 4 |
// https://vite.dev/config/
|
| 5 |
export default defineConfig({
|
| 6 |
plugins: [svelte()],
|
| 7 |
-
base: "
|
| 8 |
publicDir: "public",
|
| 9 |
build: {
|
| 10 |
outDir: "dist",
|
|
|
|
| 4 |
// https://vite.dev/config/
|
| 5 |
export default defineConfig({
|
| 6 |
plugins: [svelte()],
|
| 7 |
+
base: "/",
|
| 8 |
publicDir: "public",
|
| 9 |
build: {
|
| 10 |
outDir: "dist",
|