Skip to content

Commit 3c24e9e

Browse files
committed
AWS DynamoDB lazy loading fix
1 parent 7f7e3f5 commit 3c24e9e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Assets/UXF/Plugins/AWSJS.jslib

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@ mergeInto(LibraryManager.library, {
1111
IdentityPoolId: Pointer_stringify(identityPool),
1212
});
1313

14+
// get credentials to account for lazy loading
15+
AWS.config.credentials.get(function(err) {
16+
if (err) console.log(err);
17+
});
18+
1419
callbackGameObjectName = Pointer_stringify(callbackGameObjectName);
1520
window.onbeforeunload = function(e) {
1621
console.log("Calling OnClose from Browser!");
1722
unityInstance.SendMessage(callbackGameObjectName, "HandleBeforeUnloadEvent");
1823

19-
// Cancel the event\\
24+
// Cancel the event so the page doesn't close
2025
(e || window.event).preventDefault();
2126

2227
// This never shows up correctly for me, but it does prompt

Assets/UXF/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.5
1+
2.2.6

docs/wiki

Submodule wiki updated from 478cf6d to c7425b1

0 commit comments

Comments
 (0)