Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Close Chrome extension options

Chrome added a new way to show the options of an extension in version 40. The only way to close this overlay is to click on the small 'x' at the top right. You cannot even close it by clicking outside the window.

I want to add a button to my extension's option page to close the options. I know there is a method to open the options page: chrome.runtime.openOptionsPage().

Is there an equivalent to close the options?

like image 329
reggie Avatar asked May 30 '15 09:05

reggie


1 Answers

From within the options page, you can call window.close(), which will close the overlay.

like image 159
Xan Avatar answered Sep 18 '22 18:09

Xan