Mercurial > nightly_tester_tools
comparison chrome/content/options/prefs.js @ 2:472a16863ecc
expanded nightly.jar
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 02 Dec 2008 20:38:20 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:93e46514f20d | 2:472a16863ecc |
---|---|
1 var prefs = { | |
2 | |
3 nightly: null, | |
4 | |
5 init: function() | |
6 { | |
7 var mediator = Components.classes['@mozilla.org/appshell/window-mediator;1'] | |
8 .getService(Components.interfaces.nsIWindowMediator); | |
9 | |
10 var window = mediator.getMostRecentWindow("navigator:browser"); | |
11 if (!window) | |
12 window=mediator.getMostRecentWindow("mail:3pane"); | |
13 if (!window) | |
14 window=mediator.getMostRecentWindow("calendarMainWindow"); | |
15 if (!window) | |
16 window=mediator.getMostRecentWindow("Songbird:Main"); | |
17 if (window) | |
18 prefs.nightly=window.nightly; | |
19 } | |
20 } | |
21 | |
22 window.addEventListener("load",prefs.init,false); |