4 Commits

Author SHA1 Message Date
hensm
d6ca1325dc Add prettier and re-format .js files 2021-08-31 07:59:58 +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
242142313b Execute tests within browser page context 2019-01-11 13:47:19 +00:00
hensm
8e3992da92 chrome.cast class tests 2018-06-13 02:29:18 +01:00