mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-22 19:31:39 +03:00
10 lines
277 B
JavaScript
10 lines
277 B
JavaScript
export default function (elmLoaded) {
|
|
console.log("Hello outside of promise!");
|
|
elmLoaded.then((elmPagesApp) => {
|
|
console.log("Inside of promise");
|
|
elmPagesApp.ports.example.subscribe((message) => {
|
|
console.log("Elm port message: ", message);
|
|
});
|
|
});
|
|
}
|