Browse Source

fix: updated example dir name

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 5 years ago
parent
commit
7a3795d9fb
2 changed files with 4 additions and 6 deletions
  1. 0 0
      example/config/default.json
  2. 4 6
      example/index.html

+ 0 - 0
examples/config/default.json → example/config/default.json


+ 4 - 6
examples/index.html → example/index.html

@@ -11,12 +11,10 @@
 	</h3>
 	<script src="../dist/lofig.min.js"></script>
 	<script>
-	console.log(lofig)
-		lofig.has('secret', isSecret => {
-			if (isSecret) lofig.get('secret', res => {
-				document.getElementsByTagName('span')[0].innerHTML = res;
-			});
-		});
+		(async function () {
+			console.log(await(lofig.has('secret')));
+			console.log(await lofig.get('secret'));
+		})();
 	</script>
 </body>
 </html>