aboutsummaryrefslogtreecommitdiffstats
path: root/examples/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/index.js')
-rw-r--r--examples/index.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/index.js b/examples/index.js
index c1efd55..b76d28f 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -1,9 +1,11 @@
import { registerCustomElement, registerPorts } from "elm-mapbox";
import "mapbox-gl/dist/mapbox-gl.css";
-import { Elm } from "./Example02.elm";
+import { Elm } from "./Example04.elm";
+
+const token = "pk.eyJ1IjoiZW...";
-const token = process.env.MAPBOX_TOKEN;
registerCustomElement({token});
-var app = Elm.Example02.init({node: document.body});
-// registerPorts(app);
+var app = Elm.Example04.init({node: document.body});
+
+registerPorts(app);