mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2025-09-15 14:28:34 +08:00
up ws js
This commit is contained in:
parent
f99803aef4
commit
d77191ce0f
10
resources/web/js/src/connection.ts
vendored
10
resources/web/js/src/connection.ts
vendored
@ -753,12 +753,22 @@ function getDefaultUri(isRelay: Boolean = false): string {
|
||||
const host = localStorage.getItem("custom-rendezvous-server");
|
||||
return getrUriFromRs(host || HOST, isRelay);
|
||||
}
|
||||
/*
|
||||
function isHttps() {
|
||||
return window.location.protocol === "https:"
|
||||
}
|
||||
|
||||
function domain(uri: string) {
|
||||
return uri.indexOf(":") > 0 ? uri.split(":")[0] : uri
|
||||
}*/
|
||||
|
||||
function getrUriFromRs(
|
||||
uri: string,
|
||||
isRelay: Boolean = false,
|
||||
roffset: number = 0
|
||||
): string {
|
||||
//v2
|
||||
//if (isHttps()) return "wss://" + domain(uri) + "/ws/" + (isRelay ? "relay" : "id");
|
||||
if (uri.indexOf(":") > 0) {
|
||||
const tmp = uri.split(":");
|
||||
const port = parseInt(tmp[1]);
|
||||
|
||||
2
resources/web2/js/dist/index.js
vendored
2
resources/web2/js/dist/index.js
vendored
@ -1,4 +1,4 @@
|
||||
import {getServerConf} from './ljw.js'
|
||||
import {getServerConf} from `./ljw.js?v=3`
|
||||
import {F as $t, J as Yt, L as Re, l as P4, m as r, P as ua, s as Xt, z as H4} from "./vendor.js?v=0b990c6e";
|
||||
|
||||
var Zt = Object.defineProperty;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user