mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Update prefs API to return an Option<bool>.
This allows for situations where there is no reasonable default to apply for the pref value e.g. when we are just listing values
This commit is contained in:
parent
cc1eb3f741
commit
a208379f46
7 changed files with 12 additions and 12 deletions
|
@ -42,7 +42,7 @@ use url::{Url, UrlParser};
|
|||
use util::str::{self, LengthOrPercentageOrAuto};
|
||||
|
||||
pub fn mozbrowser_enabled() -> bool {
|
||||
prefs::get_pref("dom.mozbrowser.enabled", false)
|
||||
prefs::get_pref("dom.mozbrowser.enabled").unwrap_or(false)
|
||||
}
|
||||
|
||||
#[derive(HeapSizeOf)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue