diff --git a/template/README.md b/template/README.md index 7643c44a..f43cb9b3 100644 --- a/template/README.md +++ b/template/README.md @@ -137,7 +137,7 @@ var Elm = require('./App.elm'); var root = document.getElementById('root'); -Elm.Main.embed(root, logoPath); // Pass image path as a flag. +Elm.App.embed(root, logoPath); // Pass image path as a flag. ``` Later on, you can use the image path in your view for displaying it in the DOM. diff --git a/template/src/index.js b/template/src/index.js index 2e9cd8d7..8112e3ea 100644 --- a/template/src/index.js +++ b/template/src/index.js @@ -4,4 +4,4 @@ var Elm = require('./App.elm') var root = document.getElementById('root') -Elm.Main.embed(root, logoPath) +Elm.App.embed(root, logoPath)