Ticket #2011: fix.patch

File fix.patch, 1.4 KB (added by chrisdoble, 9 years ago)
  • src/chrome/content/preferences.js

    diff --git a/src/chrome/content/preferences.js b/src/chrome/content/preferences.js
    index 2dbe1b1..cfcfe2d 100644
    a b function torbutton_prefs_save(doc) { 
    429429    o_torprefs.setCharPref('no_proxies_on',      doc.getElementById('torbutton_noProxiesOn').value);
    430430
    431431    o_torprefs.setBoolPref('saved.transparentTor', doc.getElementById('torbutton_transparentTor').selected);
    432     if (o_torprefs.getBoolPref('torbutton_transparentTor')) {
     432    if (o_torprefs.getBoolPref('saved.transparentTor')) {
    433433        var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
    434434            .getService(Components.interfaces.nsIWindowMediator);
    435435        var chrome = wm.getMostRecentWindow("navigator:browser");
    function torbutton_prefs_save(doc) { 
    547547    o_torprefs.setBoolPref('locked_mode', doc.getElementById('torbutton_lockedMode').checked);
    548548
    549549    o_torprefs.setIntPref('refererspoof',doc.getElementById('torbutton_refererSpoofGroup').selectedIndex);
    550     if (doc.getElementById('torbutton_CustomReferer').selected)
    551        o_torprefs.setCharPref('customref',doc.getElementById('torbutton_CustomRef').value);
    552 
    553550    o_torprefs.setBoolPref('fix_google_srch', doc.getElementById('torbutton_fixGoogleSrch').checked);
    554551    o_torprefs.setBoolPref('dodge_google_captcha', doc.getElementById('torbutton_noCaptcha').checked);
    555552