theenglishway (time) 2 年 前
コミット
0d2fc31515
4 ファイル変更20 行追加3 行削除
  1. 1 1
      src/Background.purs
  2. 11 0
      src/Content.purs
  3. 1 1
      src/background.js
  4. 7 1
      src/content.js

+ 1 - 1
src/Background.purs

@@ -1,4 +1,4 @@
-module PureTabs.Background where
+module ExampleWebExt.Background where
 
 import Prelude
 

+ 11 - 0
src/Content.purs

@@ -0,0 +1,11 @@
+module ExampleWebExt.Content where
+
+import Prelude
+
+import Effect.Console (log)
+import Effect (Effect)
+
+main :: Effect Unit
+main = do
+  log "[content] starting up"
+  

+ 1 - 1
src/background.js

@@ -1,4 +1,4 @@
-var Background = require("../output/PureTabs.Background");
+var Background = require("../output/ExampleWebExt.Background");
 
 function main() {
   Background.main();

+ 7 - 1
src/content.js

@@ -1 +1,7 @@
-console.log("[content] hello world");
+var Content = require("../output/ExampleWebExt.Content");
+
+function main() {
+    Content.main();
+}
+
+main();