Skip to content

Commit 69805fc

Browse files
committed
Fix loading of services in console.html sample
1 parent 1204c7d commit 69805fc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/browser/sample/console.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
body { font-family: Helvetica, Arial, sans-serif; font-size: 9pt; }
88
.padding { padding: 12px; }
99
#header { background: #eee; font-size: 1.2em; }
10-
.selectorControl * { height: 200px; }
10+
.selectorControl select, .selectorControl textarea { height: 200px; }
1111
#operationSelector { border: 1px solid #ccc; }
1212
#operationSelector h3 { padding: 0; margin-top: 0; }
1313
#serviceSelector { width: 20%; }
@@ -203,9 +203,8 @@ <h3>Response Details</h3>
203203
function loadServices() {
204204
$('#serviceSelector').empty();
205205
for (var key in AWS) {
206-
if (!AWS[key].prototype) continue;
207-
if (AWS[key].prototype.constructor.__super__.name === 'Service') {
208-
var svcVarName = key.toLowerCase();
206+
if (AWS[key].serviceIdentifier) {
207+
var svcVarName = AWS[key].serviceIdentifier;
209208
try {
210209
var svc = services[svcVarName] = window[svcVarName] = new AWS[key]();
211210
var fullName = svc.api.abbreviation || svc.api.fullName;

0 commit comments

Comments
 (0)