mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-27 05:44:17 +03:00
Remove unused import.
This commit is contained in:
parent
c2bc4be5fb
commit
c681834fc4
@ -1,11 +1,10 @@
|
||||
// @ts-ignore
|
||||
import { Elm } from "../Main.elm";
|
||||
// @ts-ignore
|
||||
import { imageAssets, routes } from "./image-assets";
|
||||
import { imageAssets } from "./image-assets";
|
||||
import { pagesInit } from "./helper";
|
||||
|
||||
pagesInit({
|
||||
mainElmModule: Elm.Main,
|
||||
imageAssets,
|
||||
routes
|
||||
imageAssets
|
||||
});
|
||||
|
@ -1,8 +1,8 @@
|
||||
export function pagesInit({ mainElmModule, imageAssets, routes }: any) {
|
||||
export function pagesInit({ mainElmModule, imageAssets }: any) {
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
let app = mainElmModule.init({
|
||||
node: document.getElementById("app"),
|
||||
flags: { imageAssets, routes }
|
||||
flags: { imageAssets }
|
||||
});
|
||||
|
||||
app.ports.toJsPort.subscribe((Heads: [Head]) => {
|
||||
|
Loading…
Reference in New Issue
Block a user