my eye

Handle remote URLs from chat input

Committed 96a59f

--- a/package.json
+++ b/package.json

     "ts-loader": "^9.2.3",
     "webpack": "^5.39.1",
     "webpack-bundle-analyzer": "^4.8.0",
-    "webpack-cli": "^4.7.2"
+    "webpack-cli": "^4.10.0"
   }
 }

--- a/web.ts/index.ts
+++ b/web.ts/index.ts

 }
 
 export function go(url) {
+  if (url.startsWith("/http")) {
+    window.open(url.substring(1), "_blank").focus()
+  }
   history.replaceState({scroll: window.pageYOffset}, "title", window.location.href)
   updateArticle(url, 0)
   history.pushState({scroll: 0}, "title", url)