diff --git a/server/static/client.js b/server/static/client.js index fa1270a..1d9f1b4 100644 --- a/server/static/client.js +++ b/server/static/client.js @@ -58,31 +58,25 @@ class NeovimClient { let link = document.querySelector("link[rel*='icon']"); if (!link) { link = document.createElement("link"); - link.type = "image/x-icon"; + link.type = "image/svg+xml"; link.rel = "shortcut icon"; document.head.appendChild(link); } - let svgContent; switch (status) { - case "connected": - svgContent = - ''; + case "error": { + link.href = "neovim-inactive.svg"; break; - case "connecting": - svgContent = - ''; + } + case "connecting": { + link.href = "neovim-inactive.svg"; break; - case "error": - svgContent = - ''; + } + default: { + link.href = "neovim.svg"; break; - default: - svgContent = - ''; + } } - - link.href = "data:image/svg+xml," + encodeURIComponent(svgContent); } handleMessage(msg) { diff --git a/server/static/index.html b/server/static/index.html index e290afc..56fefcf 100644 --- a/server/static/index.html +++ b/server/static/index.html @@ -4,6 +4,7 @@