| @@ -6,5 +6,6 @@ | |||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.0.2/purify.min.js"></script> | |||
| <script src="/pico.js" defer></script> | |||
| <link rel="stylesheet" href="/pico.css" /> | |||
| <link rel="icon" href="/pico.svg" /> | |||
| <body>PicoChat requires JS</body> | |||
| </html> | |||
| @@ -23,6 +23,8 @@ class PicoProtocol(websockets.WebSocketServerProtocol): | |||
| content_type = 'application/javascript; charset=utf-8' | |||
| elif path.endswith('.css'): | |||
| content_type = 'text/css; charset=utf-8' | |||
| elif path.endswith('.svg'): | |||
| content_type = 'image/svg+xml; charset=utf-8' | |||
| else: | |||
| content_type = 'text/plain; charset=utf-8' | |||
| return ( | |||
| @@ -0,0 +1,6 @@ | |||
| <svg xmlns="http://www.w3.org/2000/svg" viewBox="-5 -5 10 10"> | |||
| <rect x="-5" y="-5" width="10" height="10" fill="royalblue" /> | |||
| <polygon points="3,-3 -1,1.3 -1,3" fill="white"/> | |||
| <polygon points="3,-3 -1,1.3 1,2" fill="white"/> | |||
| <polygon points="3,-3 -3,0 -1.5,1" fill="white"/> | |||
| </svg> | |||