Popup open and close methods

Forums » Dev.Opera » Opera Extensions Development Discussions

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

10. February 2012, 15:46:55

athlon1989

Posts: 10

Popup open and close methods

Hello

Will there be any methods to close/open the extension popup in the future?

20. February 2012, 09:49:33 (edited)

Opera Software

daniel

Mac product tester, Opera Software

Posts: 1253

The extension can be closed at any time by calling:
window.close();
Opening it, however, currently requires a user-action.

17. February 2012, 17:41:12 (edited)

d4n3

Posts: 957

you mean
window.close();
right?

And does it work in development mode (because of the special behavior which leaves it open to enable you to inspect it with dragonfly)?

EDIT: btw. that was your 1000th post smile party

21. February 2012, 23:05:43

Opera Software

daniel

Mac product tester, Opera Software

Posts: 1253

I just found that we have an issue with window.close() not working if the extension is installed in developer mode. bug DSK-357924

Package the extensions and install it as a normal user to test this feature of your extension.

This cost me an hour, so hoping it will save someone else’s time in the future. wink

Forums » Dev.Opera » Opera Extensions Development Discussions