Skip to content

Commit 9d0cf34

Browse files
authored
Merge pull request #115 from fobos/fix-app-embed
fix(index.js): Fix running application
2 parents 46a9425 + fb6ae27 commit 9d0cf34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

template/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ var Elm = require('./App.elm');
137137

138138
var root = document.getElementById('root');
139139

140-
Elm.Main.embed(root, logoPath); // Pass image path as a flag.
140+
Elm.App.embed(root, logoPath); // Pass image path as a flag.
141141
```
142142
Later on, you can use the image path in your view for displaying it in the DOM.
143143

template/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ var Elm = require('./App.elm')
44

55
var root = document.getElementById('root')
66

7-
Elm.Main.embed(root, logoPath)
7+
Elm.App.embed(root, logoPath)

0 commit comments

Comments
 (0)