From fb6ae278be83fcbfabe707394104f6c4e080afb7 Mon Sep 17 00:00:00 2001 From: Alexander Biryukov Date: Fri, 14 Apr 2017 15:22:46 +0700 Subject: [PATCH] fix(index.js): Fix running application. Closes #114 Forgot to rename main module name in index.js during refactoring #110 --- template/README.md | 2 +- template/src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)