Fix host and port via query string

We need to call initSetting() even if we don't have any interesting
default to set, as that is what checks if values have been provided as a
query string.

Fixes 96c76f7.
This commit is contained in:
Pierre Ossman 2024-08-19 14:01:00 +02:00
parent c6c8e5e513
commit bbb6a5b938
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,8 @@ const UI = {
UI.updateLogging();
/* Populate the controls if defaults are provided in the URL */
UI.initSetting('host', '');
UI.initSetting('port', 0);
UI.initSetting('encrypt', (window.location.protocol === "https:"));
UI.initSetting('view_clip', false);
UI.initSetting('resize', 'off');