Commit Graph

5 Commits

Author SHA1 Message Date
hensm
a046ba9022 Add options checks for waitForConnection and closeIfFocusLost 2019-07-26 03:39:13 +01:00
hensm
b213a8d85c Fix missing options 2019-07-26 00:14:47 +01:00
Matt Hensman
ba8c28bf39 Restructure background script (#70)
Splits some background script functionality into separate modules:
 - Receiver selector handling is moved to ./SelectorManager.
 - Status bridge handling is moved to ./StatusManager.
 - Menu creation and updates are handled in ./createMenus.
 - Shim creation is handled in ./createShim.

TypedEventTarget allows EventTarget-derived classes to export typed events.

Options type definition is moved to ./lib/options, module assumes more responsibility for update handling and provides a "changed" event.

Private cast._requestSession method allows bypassing receiver selector.
2019-07-26 00:09:51 +01:00
hensm
fc4f2d2e81 Move options update handling to lib/options module 2019-05-18 11:53:20 +01:00
hensm
964f54a06b Add lib/options module for typed/easier options storage access 2019-05-17 14:53:43 +01:00