Skip to content

Commit

Permalink
Fix host and port via query string
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
CendioOssman committed Aug 19, 2024
1 parent c6c8e5e commit bbb6a5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit bbb6a5b

Please sign in to comment.