aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
l---------background/content_scripts1
l---------background/lib1
-rw-r--r--background/main.ts37
-rw-r--r--tsconfig.json1
4 files changed, 22 insertions, 18 deletions
diff --git a/background/content_scripts b/background/content_scripts
new file mode 120000
index 000000000..d2499f6d2
--- /dev/null
+++ b/background/content_scripts
@@ -0,0 +1 @@
+../content_scripts \ No newline at end of file
diff --git a/background/lib b/background/lib
new file mode 120000
index 000000000..dc598c56d
--- /dev/null
+++ b/background/lib
@@ -0,0 +1 @@
+../lib \ No newline at end of file
diff --git a/background/main.ts b/background/main.ts
index 60046e733..f039f9aea 100644
--- a/background/main.ts
+++ b/background/main.ts
@@ -16,26 +16,27 @@
/**
* Entry point for the background page.
- *
+ *
* @author Florian Dold
*/
"use strict";
-// TypeScript does not allow ".js" extensions in the
-// module name, so SystemJS must add it.
-System.config({
- defaultJSExtensions: true,
- });
-
-
-System.import("../lib/wallet/wxMessaging")
- .then((wxMessaging) => {
- // Export as global for debugger
- (window as any).wxMessaging = wxMessaging;
- wxMessaging.wxMain();
- })
- .catch((e) => {
- console.log("wallet failed");
- console.error(e.stack);
- });
+window.addEventListener("load", () => {
+
+ // TypeScript does not allow ".js" extensions in the
+ // module name, so SystemJS must add it.
+ System.config({
+ defaultJSExtensions: true,
+ });
+
+ System.import("../lib/wallet/wxMessaging")
+ .then((wxMessaging) => {
+ // Export as global for debugger
+ (window as any).wxMessaging = wxMessaging;
+ wxMessaging.wxMain();
+ }).catch((e) => {
+ console.log("wallet failed");
+ console.error(e.stack);
+ });
+});
diff --git a/tsconfig.json b/tsconfig.json
index 161b778f2..ced83818b 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -26,6 +26,7 @@
"lib/wallet/helpers.ts",
"lib/wallet/http.ts",
"lib/wallet/query.ts",
+ "lib/wallet/renderHtml.ts",
"lib/wallet/types.ts",
"lib/wallet/wallet.ts",
"lib/wallet/wxApi.ts",