aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAndré Dietrich <andre.dietrich@ovgu.de>2019-09-12 18:41:26 +0200
committerAndré Dietrich <andre.dietrich@ovgu.de>2019-09-12 18:41:26 +0200
commita312ae381ff9bbaa5c7c4b5633b9bc513b40096f (patch)
tree90556a013050b207eb0deca02e8b3e2c1a7b280e /examples
parente2c5a97654e05d6136c88e85cda23ea79c2a25af (diff)
start using example 04
Diffstat (limited to 'examples')
-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);