diff --git a/README.md b/README.md index faac679..e36bac0 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,6 @@ Simple Kanban board to practice front-end development ## Dev dependencies -- TSC - Webpack ## Currently Missing / Wanted diff --git a/index.js b/index.js index 4376576..b81cf4b 100644 --- a/index.js +++ b/index.js @@ -56,7 +56,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \**********************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api */ \"./src/api.js\");\n/* harmony import */ var _dragging__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dragging */ \"./src/dragging.js\");\n/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./layout */ \"./src/layout.js\");\n\n\n\n\n\n\nfunction main() {\n const api = new _api__WEBPACK_IMPORTED_MODULE_0__.API();\n api.tryLoadFromLocalStorage();\n\n (0,_layout__WEBPACK_IMPORTED_MODULE_2__.setupAddTask)(api);\n (0,_layout__WEBPACK_IMPORTED_MODULE_2__.setupListAddButton)(api);\n (0,_dragging__WEBPACK_IMPORTED_MODULE_1__.setupDraggables)(api);\n\n (0,_layout__WEBPACK_IMPORTED_MODULE_2__.setupErrorModalLayout)();\n (0,_layout__WEBPACK_IMPORTED_MODULE_2__.setupModalLayout)();\n}\n\nwindow.addEventListener(\"load\", main);\n\n\n//# sourceURL=webpack://kanban-board/./src/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api */ \"./src/api.js\");\n/* harmony import */ var _dragging__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dragging */ \"./src/dragging.js\");\n/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./layout */ \"./src/layout.js\");\n\n\n\n\n\n\nwindow.addEventListener(\"load\", function() {\n const api = new _api__WEBPACK_IMPORTED_MODULE_0__.API();\n api.tryLoadFromLocalStorage();\n\n (0,_layout__WEBPACK_IMPORTED_MODULE_2__.setupAddTask)(api);\n (0,_layout__WEBPACK_IMPORTED_MODULE_2__.setupListAddButton)(api);\n (0,_dragging__WEBPACK_IMPORTED_MODULE_1__.setupDraggables)(api);\n\n (0,_layout__WEBPACK_IMPORTED_MODULE_2__.setupErrorModalLayout)();\n (0,_layout__WEBPACK_IMPORTED_MODULE_2__.setupModalLayout)();\n});\n\n\n//# sourceURL=webpack://kanban-board/./src/index.js?"); /***/ }), diff --git a/src/index.js b/src/index.js index 2b9809c..8131409 100644 --- a/src/index.js +++ b/src/index.js @@ -9,7 +9,7 @@ import { setupErrorModalLayout, } from "./layout"; -function main() { +window.addEventListener("load", function() { const api = new API(); api.tryLoadFromLocalStorage(); @@ -19,6 +19,4 @@ function main() { setupErrorModalLayout(); setupModalLayout(); -} - -window.addEventListener("load", main); +});