mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 703923: Disable 'Reset' buttons in about:config on prefs with default values. r=mfinkle
This commit is contained in:
parent
14a33e25d6
commit
4253b8ebab
@ -301,6 +301,7 @@
|
||||
let resetButton = document.createElement("button");
|
||||
resetButton.className = "reset-pref-button";
|
||||
resetButton.textContent = gStringBundle.GetStringFromName("resetPref.label");
|
||||
resetButton.disabled = aPref.default;
|
||||
resetButton.addEventListener("click", function(event) {
|
||||
this.resetPref(aPref);
|
||||
}.bind(this), false);
|
||||
|
Loading…
Reference in New Issue
Block a user