Update README.md

This commit is contained in:
tripathyr 2021-12-29 17:28:52 +05:30 committed by GitHub
parent f426875692
commit b85ea1cbe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();