File tree Expand file tree Collapse file tree 5 files changed +20
-12
lines changed
Expand file tree Collapse file tree 5 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 4343 " onprem" ,
4444 " pdflatex" ,
4545 " plotly" ,
46+ " pulseaudio" ,
4647 " pythontex" ,
4748 " rclass" ,
4849 " rereturn" ,
8182 " undeletes" ,
8283 " undeleting" ,
8384 " xelatex" ,
84- " xetex"
85+ " xetex" ,
86+ " xpra"
8587 ],
8688 "ignoreWords" : [
8789 " antd" ,
110112 " noconf" ,
111113 " nprocs" ,
112114 " pchildren" ,
115+ " pgrep" ,
113116 " pids" ,
114117 " Popconfirm" ,
115118 " PoweroffOutlined" ,
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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 "tar-fs@3.0.8" : " 3.0.9" ,
3233 "@types/request@2.48.12" : " 2.48.13" ,
You can’t perform that action at this time.
0 commit comments