From e7fa87bcc0052e1e99c6894e7e27a122374956b3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 28 May 2017 16:27:34 +0200 Subject: documentation and tslint settings to check for docs --- src/wxBackend.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/wxBackend.ts') 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); -- cgit v1.2.3