diff --git a/scripts/system/html/js/SnapshotReview.js b/scripts/system/html/js/SnapshotReview.js index 8185117669..060ce2f76a 100644 --- a/scripts/system/html/js/SnapshotReview.js +++ b/scripts/system/html/js/SnapshotReview.js @@ -20,7 +20,7 @@ function showSetupInstructions() { snapshotImagesDiv.className = "snapshotInstructions"; snapshotImagesDiv.innerHTML = 'Snapshot Instructions' + '
' + - '

This app lets you take and share snaps and GIFs with your connections in High Fidelity.

' + + '

Take and share snaps and GIFs with people in High Fidelity, Facebook, and Twitter.

' + "

Setup Instructions

" + "

Before you can begin taking snaps, please choose where you'd like to save snaps on your computer:

" + '
' + @@ -34,8 +34,21 @@ function showSetupComplete() { snapshotImagesDiv.className = "snapshotInstructions"; snapshotImagesDiv.innerHTML = 'Snapshot Instructions' + '
' + - "

You're all set!

" + - '

Try taking a snapshot by pressing the red button below.

'; + '
' + + '

Snapshot location set.

' + + '

Press the big red button to take a snap!

' + + '
'; +} +function showSnapshotInstructions() { + var snapshotImagesDiv = document.getElementById("snapshot-images"); + snapshotImagesDiv.className = "snapshotInstructions"; + snapshotImagesDiv.innerHTML = 'Snapshot Instructions' + + '
' + + '

Take and share snaps and GIFs with people in High Fidelity, Facebook, and Twitter.

' + + '
' + + '
' + + '

Press the big red button to take a snap!

' + + '
'; } function chooseSnapshotLocation() { EventBridge.emitWebEvent(JSON.stringify({ @@ -367,9 +380,13 @@ window.onload = function () { case 'showPreviousImages': clearImages(); imageCount = message.image_data.length; - message.image_data.forEach(function (element, idx) { - addImage(element, true, message.canShare, true, message.image_data[idx].blastButtonDisabled, message.image_data[idx].hifiButtonDisabled); - }); + if (imageCount > 0) { + message.image_data.forEach(function (element, idx) { + addImage(element, true, message.canShare, true, message.image_data[idx].blastButtonDisabled, message.image_data[idx].hifiButtonDisabled); + }); + } else { + showSnapshotInstructions(); + } break; case 'addImages': // The last element of the message contents list contains a bunch of options,