Browse Source

dont disable WSS on cloud

Jairo 7 years ago
parent
commit
099559890f
3 changed files with 14 additions and 14 deletions
  1. 7 7
      dist/peer.js
  2. 0 0
      dist/peer.min.js
  3. 7 7
      lib/peer.js

+ 7 - 7
dist/peer.js

@@ -820,13 +820,13 @@ function Peer(id, options) {
     return;
   }
   // Ensure not using unsecure cloud server on SSL page
-  if (options.secure && options.host === "0.peerjs.com") {
-    this._delayedAbort(
-      "ssl-unavailable",
-      "The cloud server currently does not support HTTPS. Please run your own PeerServer to use HTTPS."
-    );
-    return;
-  }
+  // if (options.secure && options.host === "0.peerjs.com") {
+  //   this._delayedAbort(
+  //     "ssl-unavailable",
+  //     "The cloud server currently does not support HTTPS. Please run your own PeerServer to use HTTPS."
+  //   );
+  //   return;
+  // }
   //
 
   // States.

File diff suppressed because it is too large
+ 0 - 0
dist/peer.min.js


+ 7 - 7
lib/peer.js

@@ -81,13 +81,13 @@ function Peer(id, options) {
     return;
   }
   // Ensure not using unsecure cloud server on SSL page
-  if (options.secure && options.host === "0.peerjs.com") {
-    this._delayedAbort(
-      "ssl-unavailable",
-      "The cloud server currently does not support HTTPS. Please run your own PeerServer to use HTTPS."
-    );
-    return;
-  }
+  // if (options.secure && options.host === "0.peerjs.com") {
+  //   this._delayedAbort(
+  //     "ssl-unavailable",
+  //     "The cloud server currently does not support HTTPS. Please run your own PeerServer to use HTTPS."
+  //   );
+  //   return;
+  // }
   //
 
   // States.

Some files were not shown because too many files changed in this diff