diff options
Diffstat (limited to 'src/background/background.ts')
-rw-r--r-- | src/background/background.ts | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/background/background.ts b/src/background/background.ts index fe2359812..9b50caf9c 100644 --- a/src/background/background.ts +++ b/src/background/background.ts @@ -20,22 +20,9 @@ * @author Florian Dold */ -"use strict"; -window.addEventListener("load", () => { - - // TypeScript does not allow ".js" extensions in the - // module name, so SystemJS must add it. - System.config({ - defaultJSExtensions: true, - }); +import {wxMain} from "./../wxBackend"; - System.import("../wxBackend") - .then((wxMessaging: any) => { - // Export as global for debugger - (window as any).wx = wxMessaging; - wxMessaging.wxMain(); - }).catch((e: Error) => { - console.error("Loading Taler wallet background page failed.", e); - }); +window.addEventListener("load", () => { + wxMain(); }); |