diff options
author | André Dietrich <andre.dietrich@ovgu.de> | 2020-01-07 18:02:43 +0100 |
---|---|---|
committer | André Dietrich <andre.dietrich@ovgu.de> | 2020-01-07 18:02:43 +0100 |
commit | 1d440169042ecb74482569637f480306ad331f26 (patch) | |
tree | 80ea57140c34d738788cae8d98018915e5aa802b /examples/index.js | |
parent | 42d5dacc1e2edeff15fabe507fdd6b4e335923d2 (diff) | |
parent | d07b8909baedf4740b12f0c72d61b4f111ba2af2 (diff) |
Merge branch 'master' of https://github.com/andre-dietrich/elm-mapbox
Diffstat (limited to 'examples/index.js')
-rw-r--r-- | examples/index.js | 10 |
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); |