From c6e2d0039e23abf6f6327962ee077d151825e71b Mon Sep 17 00:00:00 2001 From: "Troy J. Farrell" Date: Thu, 22 Oct 2020 06:11:33 -0400 Subject: [PATCH] Fix getGrainTitle example Fixes #3430 --- docs/developing/path.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/developing/path.md b/docs/developing/path.md index 047bee08..dfa39efa 100644 --- a/docs/developing/path.md +++ b/docs/developing/path.md @@ -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