I can't use tabs.create() however, because I am making a quick
extension that makes the new tab button open the user's homepage (or a
specified page) instead of Google's new tab page. Using tabs.create()
would create 2 tabs.
One more quick question with the code below:
chrome.tabs.onCreated.addListener(function(tab) {
chrome.tabs.update(tab.id,{
url: "http://www.glotouch.com"
});
});
For some odd reason this code only works on every other tab that is
created. Any idea why?
On Nov 3, 1:58 pm, Aaron Boodman <[email protected]> wrote:
> On Tue, Nov 3, 2009 at 12:44 PM, Stacks <[email protected]> wrote:
> > I'm trying to set new tabs to the user's homepage. I guess I could
> > always just let them specify which page to open in the extension
> > settings, but it would have been easier to just make it the homepage.
>
> I think that you don't need to do anything in that case. New tabs
> (create with chrome.tabs.create()) already get the user's preferred
> homepage by default.
>
> - a
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---