зеркало из https://github.com/mozilla/pjs.git
chatzilla only
bug 113683, strict warning fixes, r=ssieb
This commit is contained in:
Родитель
4c3f787bbd
Коммит
28396243e1
|
@ -189,8 +189,9 @@ function readIRCPrefs (rootNode)
|
|||
|
||||
function writeIRCPrefs (rootNode)
|
||||
{
|
||||
pref = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
const PREF_CTRID = "@mozilla.org/preferences-service;1";
|
||||
const nsIPrefBranch = Components.interfaces.nsIPrefBranch;
|
||||
var pref = Components.classes[PREF_CTRID].getService(nsIPrefBranch);
|
||||
if(!pref)
|
||||
throw ("Can't find pref component.");
|
||||
|
||||
|
|
|
@ -1285,7 +1285,7 @@ function gotoIRCURL (url)
|
|||
client.onInputServer ({inputData: url.host + " " + url.port +
|
||||
" " + pass});
|
||||
net = client.networks[url.host];
|
||||
if (!net.pendingURLs)
|
||||
if (!("pendingURLs" in net))
|
||||
net.pendingURLs = new Array();
|
||||
net.pendingURLs.push (url);
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче