mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-10-28 03:43:14 +08:00
docs(common): say relative chat links still open nothing on desktop
The comment on `EXTERNAL_PROTOCOLS` said a relative path or an in-page `#anchor` in a chat reply was left to the webview, which read as though the webview opened it. Those links keep the renderer's `target="_blank"`, and the desktop instance window has no new-window handler, so a click on one still opens nothing, as before this change. The comment now says so.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
/**
|
||||
* Schemes a chat reply link may open outside the app. Any other link, a
|
||||
* `mailto:`, a relative path or an in-page `#anchor`, is left to the webview.
|
||||
* `mailto:`, a relative path or an in-page `#anchor`, is not handled here and
|
||||
* keeps the renderer's `target="_blank"`, so on desktop a click on one still
|
||||
* opens nothing, as before this handler.
|
||||
*/
|
||||
const EXTERNAL_PROTOCOLS = new Set(["http:", "https:"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user