Update programs/server/play.html

This commit is contained in:
Vladimir C 2021-08-05 12:04:13 +03:00 committed by GitHub
parent e740d8e643
commit d9b8936256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,7 +367,7 @@
const server_address = document.getElementById('url').value;
const url = server_address +
(~server_address.indexOf('?') ? '&' : '?') +
(server_address.indexOf('?') >= 0 ? '&' : '?') +
/// Ask server to allow cross-domain requests.
'add_http_cors_header=1' +
'&user=' + encodeURIComponent(user) +