mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
Update sandbox.html
This commit is contained in:
@@ -61,9 +61,7 @@ limitations under the License.
|
||||
result = 'invalid request';
|
||||
|
||||
// if we don't know the templateName requested, return an error message
|
||||
if !(template) {
|
||||
result = 'Unknown template: ' + event.data.templateName;
|
||||
} else {
|
||||
if (template) {
|
||||
switch (command) {
|
||||
case 'render':
|
||||
result = template(event.data.context);
|
||||
@@ -75,6 +73,8 @@ limitations under the License.
|
||||
// result = template(event.data.context);
|
||||
// break;
|
||||
}
|
||||
} else {
|
||||
result = 'Unknown template: ' + event.data.templateName;
|
||||
}
|
||||
event.source.postMessage({ result: result }, event.origin);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user