Skip to content

Commit

Permalink
убирает обертку у getData в main
Browse files Browse the repository at this point in the history
  • Loading branch information
Suninall committed Dec 30, 2024
1 parent fc94204 commit dd01167
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import "./form-filling.js";
import {loadPhoto} from "./photo-load.js";
import {getData} from "./interact-with-data.js";
loadPhoto();
const loadData = getData(renderPosts, showAlert);
loadData();
getData(renderPosts, showAlert)();

//const sendData = postData(console.log, console.error);
//sendData();

0 comments on commit dd01167

Please sign in to comment.