Update play.html

This commit is contained in:
Alexey Milovidov 2023-05-05 03:37:13 +03:00 committed by GitHub
parent 291bcc0e54
commit 5cf3863e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -517,7 +517,7 @@
let previous_query = '';
const current_url = new URL(window.location);
const opened_locally = document.location.href.startsWith("file://");
const opened_locally = location.protocol == 'file:';
const server_address = current_url.searchParams.get('url');
if (server_address) {