Different

This commit is contained in:
Alexey Milovidov 2024-07-12 21:32:14 +02:00 committed by Aleksandr Musorin
parent eb4cddd139
commit 02704bc5cc

View File

@ -522,8 +522,8 @@
const current_url = new URL(window.location); const current_url = new URL(window.location);
const opened_locally = location.protocol == 'file:'; const opened_locally = location.protocol == 'file:';
/// Run query instantly after page is loaded /// Run query instantly after page is loaded if the run parameter is present.
const run_immediately = current_url.searchParams.get("run") == 1; const run_immediately = !!current_url.searchParams.get("run");
const server_address = current_url.searchParams.get('url'); const server_address = current_url.searchParams.get('url');
if (server_address) { if (server_address) {