~emersion/public-inbox

gamja: component/app: Automatically prepend wss to server URL if unspecified v1 PROPOSED

~delthas
Hope you like my patch, Simon ;)

delthas (1):
  component/app: Automatically prepend wss to server URL if unspecified

 components/app.js | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.30.2
Pushed, thanks!
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/public-inbox/patches/23405/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gamja 1/1] component/app: Automatically prepend wss to server URL if unspecified Export this patch

~delthas
From: delthas <delthas@dille.cc>

---
 components/app.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/components/app.js b/components/app.js
index 1952c0c..6b2da31 100644
--- a/components/app.js
+++ b/components/app.js
@@ -76,6 +76,9 @@ function fillConnectParams(params) {
	if (params.url.startsWith("/")) {
		params.url = proto + "//" + host + params.url;
	}
	if (params.url.indexOf("://") < 0) {
		params.url = proto + "//" + params.url;
	}
	if (!params.username) {
		params.username = params.nick;
	}
-- 
2.30.2
Pushed, thanks!