Skip to content

Commit

Permalink
fix: to secured type connections
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraviolet-jordan committed Feb 4, 2024
1 parent 890449e commit 3ad3fad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10499,7 +10499,8 @@ type WorldList = {
};

const hostname: string = window.location.hostname;
const secured: boolean = hostname.startsWith('https');
const protocol: string = window.location.protocol;
const secured: boolean = protocol.startsWith('https');

//// check and set default browser params before starting
if (GameShell.getParameter('world').length === 0) {
Expand Down

0 comments on commit 3ad3fad

Please sign in to comment.