From b85ea1cbe601d8e6ab6adfe3f14a6b5b45619bd2 Mon Sep 17 00:00:00 2001 From: tripathyr Date: Wed, 29 Dec 2021 17:28:52 +0530 Subject: [PATCH] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f1b9946..1bd733b 100644 --- a/README.md +++ b/README.md @@ -838,7 +838,14 @@ Note: startup funtions are called in parallel. Therefore only add custom startup ```javascript //Executes automatically on startup before anything else executes -floDapps.addStartUpFunction("myFirstFunction",function (){ return new Promise ((resolve,reject)=>{console.log("First function Excecuted before everything else");resolve("My First Function executed")}); }); +floDapps.addStartUpFunction("myFirstFunction", + function (){ + return new Promise ( + (resolve,reject)=>{ + console.log("First function Excecuted before everything else"); + resolve("My First Function executed") + }); + }); // Manaul execution on console floDapps.util.startUpFunctions.myFirstFunction();