Merge branch 'override_cfg' into 'master'
Allow overriding prefs Closes #8 See merge request librewolf-community/settings!13
This commit is contained in:
commit
bdcf58627a
1 changed files with 8 additions and 0 deletions
|
|
@ -2772,3 +2772,11 @@ defaultPref("devtools.selfxss.count", 0);
|
|||
// enable HTTPS only mode by default
|
||||
defaultPref("dom.security.https_only_mode", true);
|
||||
defaultPref("dom.security.https_only_mode_ever_enabled", true);
|
||||
|
||||
// allow settings to be overriden with a file at `~/.librewolf/librewolf.overrides.cfg`
|
||||
// or `~/.var/app/io.gitlab.librewolf-community/.librewolf/librewolf.overrides.cfg` (Flatpak).
|
||||
// not yet verified to work on Windows and MacOS releases
|
||||
let home_directory = getenv("HOME");
|
||||
if (home_directory) {
|
||||
pref("autoadmin.global_config_url", `file://${home_directory}/.librewolf/librewolf.overrides.cfg`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue