|
@@ -162,7 +162,13 @@ const ConnState = {
|
|
};
|
|
};
|
|
export default {
|
|
export default {
|
|
name: "telws_view",
|
|
name: "telws_view",
|
|
- props: ["hideUrl", "defaultUrl", "autoConnect", "defaultBackground", "disableUrl"],
|
|
|
|
|
|
+ props: [
|
|
|
|
+ "hideUrl",
|
|
|
|
+ "defaultUrl",
|
|
|
|
+ "autoConnect",
|
|
|
|
+ "defaultBackground",
|
|
|
|
+ "disableUrl"
|
|
|
|
+ ],
|
|
watch: {
|
|
watch: {
|
|
background(newVal, oldVal) {
|
|
background(newVal, oldVal) {
|
|
if (this.$refs.term.$term) {
|
|
if (this.$refs.term.$term) {
|
|
@@ -378,7 +384,11 @@ export default {
|
|
this.disconnect();
|
|
this.disconnect();
|
|
}
|
|
}
|
|
this.$refs.term.$term.clear();
|
|
this.$refs.term.$term.clear();
|
|
- this.connSM.url_prefix = this.telwsurl + "/";
|
|
|
|
|
|
+ if (this.telwsurl.charAt(this.telwsurl.length - 1) == "/") {
|
|
|
|
+ this.connSM.url_prefix = this.telwsurl;
|
|
|
|
+ } else {
|
|
|
|
+ this.connSM.url_prefix = this.telwsurl + "/";
|
|
|
|
+ }
|
|
var turl = new URL(this.connSM.url_prefix);
|
|
var turl = new URL(this.connSM.url_prefix);
|
|
var schpre = "ws:";
|
|
var schpre = "ws:";
|
|
if (turl.protocol === "https:") {
|
|
if (turl.protocol === "https:") {
|