diff --git a/src/app.js b/src/app.js index 60b7212..4313839 100644 --- a/src/app.js +++ b/src/app.js @@ -12,4 +12,9 @@ async function testApi() { var sysInfo = await d2Get("/api/system/info.json"); console.log(sysInfo.version); } -testApi(); + +window.helloWorld = async function () { + await testApi(); + alert("Hello world..."); + +}; diff --git a/src/index.html b/src/index.html index a0b0261..e340c67 100644 --- a/src/index.html +++ b/src/index.html @@ -21,6 +21,8 @@

Content goes here...

+ +