santech-galaxy-component 2.5.20 → 2.5.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114345,8 +114345,10 @@ function WebServer(mgr) {
114345
114345
  };
114346
114346
  this.connect = function () {
114347
114347
  if (!_this.tryConnect) return;
114348
- var con = new WebSocket('ws://127.0.0.1:' + mgr.Config.edge.port);
114349
- console.log("开始连接服务:" + 'ws://127.0.0.1:' + mgr.Config.edge.port);
114348
+ const isSecure = window.location.protocol === 'https:';
114349
+ const wsProtocol = isSecure ? 'wss://' : 'ws://';
114350
+ var con = new WebSocket(wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114351
+ console.log("开始连接服务:" + wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114350
114352
 
114351
114353
  // 打开Socket
114352
114354
  con.onopen = function (event) {
@@ -114766,6 +114768,7 @@ function WordPasterManager() {
114766
114768
  this.app.postMessage = this.app.postMessageEdge;
114767
114769
  }
114768
114770
  this.pluginLoad = function () {
114771
+ console.log("########this.pluginInited#############", this.pluginInited);
114769
114772
  if (!this.pluginInited) {
114770
114773
  if (this.data.browser.edge) {
114771
114774
  this.edgeApp.connect();
@@ -114773,6 +114776,7 @@ function WordPasterManager() {
114773
114776
  }
114774
114777
  };
114775
114778
  this.pluginCheck = function () {
114779
+ console.log("########this.pluginCheck#############", this.pluginInited);
114776
114780
  if (!this.pluginInited) {
114777
114781
  this.setup_tip();
114778
114782
  this.pluginLoad();
package/lib/index.umd.js CHANGED
@@ -114354,8 +114354,10 @@ function WebServer(mgr) {
114354
114354
  };
114355
114355
  this.connect = function () {
114356
114356
  if (!_this.tryConnect) return;
114357
- var con = new WebSocket('ws://127.0.0.1:' + mgr.Config.edge.port);
114358
- console.log("开始连接服务:" + 'ws://127.0.0.1:' + mgr.Config.edge.port);
114357
+ const isSecure = window.location.protocol === 'https:';
114358
+ const wsProtocol = isSecure ? 'wss://' : 'ws://';
114359
+ var con = new WebSocket(wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114360
+ console.log("开始连接服务:" + wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114359
114361
 
114360
114362
  // 打开Socket
114361
114363
  con.onopen = function (event) {
@@ -114775,6 +114777,7 @@ function WordPasterManager() {
114775
114777
  this.app.postMessage = this.app.postMessageEdge;
114776
114778
  }
114777
114779
  this.pluginLoad = function () {
114780
+ console.log("########this.pluginInited#############", this.pluginInited);
114778
114781
  if (!this.pluginInited) {
114779
114782
  if (this.data.browser.edge) {
114780
114783
  this.edgeApp.connect();
@@ -114782,6 +114785,7 @@ function WordPasterManager() {
114782
114785
  }
114783
114786
  };
114784
114787
  this.pluginCheck = function () {
114788
+ console.log("########this.pluginCheck#############", this.pluginInited);
114785
114789
  if (!this.pluginInited) {
114786
114790
  this.setup_tip();
114787
114791
  this.pluginLoad();