Merge pull request #3455 from troyjfarrell/master

Fix getGrainTitle example
This commit is contained in:
Jacob Weisz authored and GitHub committed 2020-10-22 07:15:04 -05:00
commit f36bd0e927
1 file changed
+2 -2
+2 -2
View File
@@ -94,13 +94,13 @@ window.addEventListener('message', function(event) {
// SECURITY: ignore messages not from the parent.
return;
}
if(event.data.rpcId === getGrainTtileRpcId) {
if(event.data.rpcId === getGrainTitleRpcId) {
console.log("The grain's title is: ", event.data.grainTitle);
}
})
// Now make the request:
window.postMessage({
window.parent.postMessage({
getGrainTitle: {},
rpcId: getGrainTitleRpcId,
// If subscribe is true, sandstorm will push future updates to the