Cool, I have some other improvements to make. I'll do these all at the
same time.

- a

On Mon, Nov 30, 2009 at 8:22 PM, Nathan J. Brauer <[email protected]> wrote:
> Great idea! +1 for making this part of the extension :)
>
> On Dec 1, 1:47 am, AlK <[email protected]> wrote:
>> Hi
>>
>> I just modified Google Mail Checker to prevent it to open a new tab if
>> a gmail tab is already opened.
>>
>> I modified the function goToInbox like that :
>>
>> var gmailre = /https?:\/\/mail\.google\.com\//;
>>
>> function goToInbox() {
>>     chrome.tabs.getAllInWindow(undefined, function(tabs) {
>>         var done = false;
>>         for(var i = 0; i < tabs.length; i++) {
>>             var tab = tabs[i];
>>             if(tab.url && tab.url.match(gmailre)) {
>>                 chrome.tabs.update(tab.id, {selected: true});
>>                 done = true;
>>                 break;
>>             }
>>         }
>>         if(!done) {
>>             chrome.tabs.create({url: gmail});
>>         }
>>     });
>>
>> }
>>
>> And you should probably change those variables to use the secure http
>> protocol :
>>
>> var gmail = "https://mail.google.com/";;
>> var gmailAtomRef = "https://mail.google.com/mail/feed/atom";;
>>
>> It would be great if the author of the extension applied it ...
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Chromium-extensions" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/chromium-extensions?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to