CentBrowser Forum

Full Version: Download Shutdown extension
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have problems with this extension. It should close the browser when the downloads finish. When I use it in Chrome the extension shuts down Chrome but in Cent Browser it only closes the tab and it opens new tab page.
(10-06-2016, 07:50 AM)lator Wrote: [ -> ]I have problems with this extension. It should close the browser when the downloads finish. When I use it in Chrome the extension shuts down Chrome but in Cent Browser it only closes the tab and it opens new tab page.

Send me your extension by zip file ! I will try to fix it for u . Biggrin
(10-06-2016, 08:03 AM)xuandung38 Wrote: [ -> ]
(10-06-2016, 07:50 AM)lator Wrote: [ -> ]I have problems with this extension. It should close the browser when the downloads finish. When I use it in Chrome the extension shuts down Chrome but in Cent Browser it only closes the tab and it opens new tab page.

Send me your extension by zip file ! I will try to fix it for u . Biggrin

Thanks
Our default closing policy is not the same with Chrome.
You must change "When closing the last tab" to "Close browser window" to make this extension work.
I don't have that option.

In the extension code there is this
Code:
function shutdown() {
   chrome.tabs.query({}, function(tabs) {
       for (var t = 0; t < tabs.length; t++)
           chrome.tabs.remove(tabs[t].id)
   });
}
lator, what I said in #5 was not referring the extension itself, but the browser.
It is an option within "Tab options" section.
(10-07-2016, 05:08 PM)CentBrowser Wrote: [ -> ]lator, what I said in #5 was not referring the extension itself, but the browser.
It is an option within "Tab options" section.

Thanks, it works