cli-tunnel 1.4.1 → 1.4.2
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.
- package/package.json +1 -1
- package/remote-ui/app.js +2 -2
package/package.json
CHANGED
package/remote-ui/app.js
CHANGED
|
@@ -977,7 +977,7 @@
|
|
|
977
977
|
history.replaceState(null, '', cleanUrl.toString());
|
|
978
978
|
}
|
|
979
979
|
|
|
980
|
-
|
|
980
|
+
var proto = location.protocol === 'https:' ? 'wss:' : 'ws:';
|
|
981
981
|
|
|
982
982
|
// If we have a ticket (from hub Connect button), use it directly
|
|
983
983
|
if (ticketParam) {
|
|
@@ -985,7 +985,7 @@
|
|
|
985
985
|
} else {
|
|
986
986
|
// Exchange token for ticket
|
|
987
987
|
try {
|
|
988
|
-
|
|
988
|
+
var resp = await fetch('/api/auth/ticket', {
|
|
989
989
|
method: 'POST',
|
|
990
990
|
headers: { 'Authorization': 'Bearer ' + savedToken }
|
|
991
991
|
});
|