<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -23,13 +23,24 @@ var counter = 0;
 var window;
 var XMPP;
 
-// Detects browser window
+
+// Application detecting
+const appCheck = Components
+  .classes[&quot;@mozilla.org/preferences-service;1&quot;]
+  .getService(Components.interfaces.nsIPrefService)
+  .getBranch('general.useragent.extra.');
+
 var wm = Components
     .classes[&quot;@mozilla.org/appshell/window-mediator;1&quot;]
     .getService(Components.interfaces.nsIWindowMediator);
-// MEMO: Specifing navigator:browser Notify me won't work with Thunderbird
-window = wm.getMostRecentWindow(&quot;navigator:browser&quot;);
-window = wm.getMostRecentWindow(&quot;&quot;);
+
+var children = appCheck.getChildList(&quot;&quot;, {});
+if (children == &quot;thunderbird&quot;){
+  window = wm.getMostRecentWindow(&quot;&quot;);
+ }
+if (children == &quot;firefox&quot;){
+  window = wm.getMostRecentWindow(&quot;navigator:browser&quot;);
+ }
 
 // Mozilla Firefox Preferences managing interface
 const prefManager = Components</diff>
      <filename>chrome/content/autorec.js</filename>
    </modified>
    <modified>
      <diff>@@ -89,15 +89,6 @@ function init() {
     runInFirefox();
   }
 
-    
-    
-  /*
-    var autorec = {};
-    loader.loadSubScript('chrome://notifyme/content/autorec.js', autorec);
-    autorec.init(XMPP, win);
-  */
-
-    
 }
 
 function runInFirefox(){</diff>
      <filename>chrome/content/service.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d0a72a1e86838d81613f6d3cd4fb89551e7a799c</id>
    </parent>
  </parents>
  <author>
    <name>Ivan Morgillo</name>
    <email>imorgillo [at] sanniolug [dot] org</email>
  </author>
  <url>http://github.com/hamen/notifyme/commit/254f07f726188f9e9d7b7ab27b07400840a1ae2d</url>
  <id>254f07f726188f9e9d7b7ab27b07400840a1ae2d</id>
  <committed-date>2008-08-18T07:51:51-07:00</committed-date>
  <authored-date>2008-08-18T07:51:51-07:00</authored-date>
  <message>Autorec: better Firefox/Thunderbird window detection</message>
  <tree>bb65a927a3341081e9e6128551212c288b409729</tree>
  <committer>
    <name>Ivan Morgillo</name>
    <email>imorgillo [at] sanniolug [dot] org</email>
  </committer>
</commit>
