Open local development site in browser on run
Committed a32e09
--- a/web/__main__.py
+++ b/web/__main__.py
import asyncio
if self.port:
+ webbrowser.open(f"http://localhost:{self.port}")
asyncio.run(web.serve(self.app, port=self.port, watch_dir=self.watch))
elif self.socket:
asyncio.run(web.serve(self.app, socket=self.socket, watch_dir=self.watch))