diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-28 16:27:34 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-28 21:55:16 +0200 |
commit | e7fa87bcc0052e1e99c6894e7e27a122374956b3 (patch) | |
tree | 56c243d08ae357533ebdb4fbf41211aa0fc914ce /src/wxBackend.ts | |
parent | 08bd3dc0e8a3c2370e4e8abbaa241eaafc144f4c (diff) |
documentation and tslint settings to check for docs
Diffstat (limited to 'src/wxBackend.ts')
-rw-r--r-- | src/wxBackend.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wxBackend.ts b/src/wxBackend.ts index 6b9601572..a9a208dcd 100644 --- a/src/wxBackend.ts +++ b/src/wxBackend.ts @@ -340,8 +340,9 @@ async function dispatch(handlers: any, req: any, sender: any, sendResponse: any) } } + class ChromeNotifier implements Notifier { - ports: Port[] = []; + private ports: Port[] = []; constructor() { chrome.runtime.onConnect.addListener((port) => { @@ -483,6 +484,11 @@ function clearRateLimitCache() { rateLimitCache = {}; } +/** + * Main function to run for the WebExtension backend. + * + * Sets up all event handlers and other machinery. + */ export async function wxMain() { window.onerror = (m, source, lineno, colno, error) => { logging.record("error", m + error, undefined, source || "(unknown)", lineno || 0, colno || 0); |