Skip to content

Commit

Permalink
Use .embed() to initialize static pages
Browse files Browse the repository at this point in the history
So all programs that can embed have the same name on the JS side
  • Loading branch information
evancz committed Apr 1, 2018
1 parent 9f9e03e commit 3b4c120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elm/Kernel/VirtualDom.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function _VirtualDom_appendChild(parent, child)
var _VirtualDom_init = F4(function(virtualNode, flagDecoder, debugMetadata, object)
{
// NOTE: this function needs __Platform_export available to work
object['init'] = function(node)
object['embed'] = function(node)
{
node.parentNode.replaceChild(
_VirtualDom_render(virtualNode, function() {}),
Expand Down

0 comments on commit 3b4c120

Please sign in to comment.