dmathisen
dmathisen

Reputation: 2342

Opening Chrome Extension using platform API

In my extension popup window, I have a button that opens a new window and loads a set of tabs. This works as expected.

Now I'd like to have my extension re-open when the new window is created. Maybe something like...

chrome.windows.create({ url: ["some", "array"] }, function() {
    chrome.extension.openCurrent(); // this doesn't exist
});

Something like that... so I can persist my extension in the new window. Is this possible?

Upvotes: 1

Views: 83

Answers (1)

Daniel Herr
Daniel Herr

Reputation: 20478

There is an API, chrome.browserAction.openPopup(function callback), that will hopefully be available soon. Please star this bug: https://code.google.com/p/chromium/issues/detail?id=436489

Upvotes: 1

Related Questions