Skip to content

Commit

Permalink
Update sandbox.html
Browse files Browse the repository at this point in the history
  • Loading branch information
IanStanion-google committed Jun 29, 2023
1 parent caa2ed3 commit c3f7c5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api-samples/sandbox/sandbox/sandbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ <h1>Welcome back</h1>
// Set up message event handler:
window.addEventListener('message', function (event) {
const command = event.data.command;
let template = templates[event.data.templateName],
const template = templates[event.data.templateName],
result = 'invalid request';

// if we don't know the templateName requested, return an error message
if (!template) {
if !(template) {
result = 'Unknown template: ' + event.data.templateName;
} else {
switch (command) {
Expand Down

0 comments on commit c3f7c5d

Please sign in to comment.