Commit Graph

16 Commits

Author SHA1 Message Date
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
70e05566fa Add availableMediaTypes bitmask to receiver selector open method 2019-07-09 10:56:55 +01:00
hensm
43fcd5b351 Fix mirror sender and use getDisplayMedia 2019-07-07 10:35:52 +01:00
hensm
405883c17b Remove unused constants 2019-06-25 23:29:06 +01:00
hensm
bfc09376d1 Convert mirroringCast sender to typescript 2019-06-14 13:41:55 +01:00
hensm
4ac2dcad65 Rebuild whitelist menu onShown instead of navigation or tab activation 2019-05-06 04:17:53 +01:00
hensm
8ad20a7aea TSLint compliance 2019-05-02 06:17:31 +01:00
hensm
31061a3a3a Fix @types/firefox-webext-browser issue 2019-05-02 06:17:31 +01:00
hensm
0449e3cdf3 TSLint compliance 2019-03-19 16:30:37 +00:00
hensm
410d6a267b Remove compat scripts and move API URL redirection to contentSetup 2019-03-14 09:42:00 +00:00
hensm
00e923c8ce cloneInto targetScope should be a Window object 2019-03-12 11:33:51 +00:00
Matt Hensman
f1125061d5 Convert shim to Typescript (#32) 2019-03-12 05:51:43 +00:00
hensm
076c8ce699 Convert ext updater to typescript 2019-02-27 19:00:29 +00:00
hensm
06044d9460 Convert ext popup to typescript 2019-02-27 18:33:29 +00:00
hensm
7eaa97a556 Convert ext options to typescript 2019-02-27 16:32:04 +00:00
hensm
3ea943c509 Convert ext main.js -> main.ts 2019-02-26 19:28:52 +00:00