Fix charset bug.

This commit is contained in:
blakeross%telocity.com 2002-10-13 17:23:14 +00:00
parent 88086f0325
commit 48f82757b0

View File

@ -4418,14 +4418,12 @@ function SelectDetector(event, doReload)
}
try {
var pref = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch);
var str = Components.classes["@mozilla.org/supports-wstring;1"]
.createInstance(Components.interfaces.nsISupportsWString);
var str = Components.classes["@mozilla.org/supports-string;1"]
.createInstance(Components.interfaces.nsISupportsString);
str.data = prefvalue;
pref.setComplexValue("intl.charset.detector",
Components.interfaces.nsISupportsWString, str);
gPrefService.setComplexValue("intl.charset.detector",
Components.interfaces.nsISupportsString, str);
if (doReload) window._content.location.reload();
}
catch (ex) {