drmproductions / ActiveCollabInlineTimers

Provides instant access to timers on any Active Collab page that lists tasks.
https://drminc.com
GNU General Public License v3.0
6 stars 3 forks source link

Don't immediately destroy popup #4

Closed TitanNano closed 5 years ago

TitanNano commented 7 years ago

Certain actions in the popup window send off a command to the server script and then immediately destroy the window with window.close(). Because Firefox sends messages between windows asynchronously, an exception is raised when the window has been destroyed before the message has been sent. The easiest way to fix this, is to wait for the response before closing the window.

luveti commented 7 years ago

Hey TitanNano! Thank you for the pull requests! I'll look into these as soon as I get a chance :)