Skip to content

Commit 02640ac

Browse files
committed
Update example and dist version
1 parent 545d931 commit 02640ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/openspace-api.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ <h1>OpenSpace JavaScript API Example</h1>
2424
api.onConnect(function () {
2525

2626
// Example 1: Execute a lua function to get the current simulation time.
27-
api.library().then(function (openspace) {
27+
api.singleReturnLibrary().then(function (openspace) {
2828
openspace.time.UTC().then(function (data) {
29-
console.log("OpenSpace simulation time is " + data[1]);
29+
console.log("OpenSpace simulation time is " + data);
3030
});
3131
});
3232

0 commit comments

Comments
 (0)