Skip to content

Commit 31ded84

Browse files
committed
Merge remote-tracking branch 'origin/npm-node-forge-xpra' into pr-20251208
2 parents 751f4e7 + 4f31396 commit 31ded84

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

src/packages/frontend/cspell.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"onprem",
4444
"pdflatex",
4545
"plotly",
46+
"pulseaudio",
4647
"pythontex",
4748
"rclass",
4849
"rereturn",
@@ -81,7 +82,8 @@
8182
"undeletes",
8283
"undeleting",
8384
"xelatex",
84-
"xetex"
85+
"xetex",
86+
"xpra"
8587
],
8688
"ignoreWords": [
8789
"antd",
@@ -110,6 +112,7 @@
110112
"noconf",
111113
"nprocs",
112114
"pchildren",
115+
"pgrep",
113116
"pids",
114117
"Popconfirm",
115118
"PoweroffOutlined",

src/packages/frontend/frame-editors/x11-editor/xpra-client.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,18 @@ export class XpraClient extends EventEmitter {
156156
// Get origin, but with http[s] stripped.
157157
// Do not use window.location.hostname, since that doesn't
158158
// include the port, if there is one.
159-
let origin = window.location.origin;
159+
const { origin, protocol: pageProtocol } = window.location;
160160
const i = origin.indexOf(":");
161-
origin = origin.slice(i);
161+
const originTail = origin.slice(i);
162+
const wsProtocol = pageProtocol === "https:" ? "wss" : "ws";
162163

163164
const path = join(
164165
appBasePath,
165166
this.options.project_id,
166167
"server",
167168
`${port}`,
168169
);
169-
const uri = `wss${origin}${path}`;
170+
const uri = `${wsProtocol}${originTail}${path}`;
170171
const dpi = Math.round(BASE_DPI * window.devicePixelRatio);
171172
return { uri, dpi };
172173
}

src/packages/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"md5": "^2",
117117
"memoize-one": "^5.1.1",
118118
"mermaid": "^11.10.0",
119-
"node-forge": "^1.0.0",
119+
"node-forge": "^1.3.2",
120120
"onecolor": "^3.1.0",
121121
"pdfjs-dist": "^4.6.82",
122122
"plotly.js": "^2.29.1",

src/packages/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"langchain": "^0.3.34",
2828
"katex@<0.16.9": "^0.16.10",
2929
"nanoid@<3.3.8": "^3.3.8",
30+
"node-forge@<=1.3.1": "^1.3.2",
3031
"tar-fs@<=2.1.3": "2.1.4",
3132
"[email protected]": "3.0.9",
3233
"@types/[email protected]": "2.48.13",

src/packages/pnpm-lock.yaml

Lines changed: 10 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)