Skip to content

Commit

Permalink
nintendo can't do wss
Browse files Browse the repository at this point in the history
  • Loading branch information
stonedDiscord committed Apr 13, 2024
1 parent 175bebb commit 000247f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webAO/master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function processServerlist(serverlist: AOServer[]) {
ws_protocol = 'ws';
http_protocol = 'http';
}
if (server.wss_port) {
if (server.wss_port && !window.navigator.userAgent.includes("Nintendo")) {
ws_port = server.wss_port;
ws_protocol = 'wss';
http_protocol = 'https';
Expand Down

0 comments on commit 000247f

Please sign in to comment.