(thumbId, opt_error)
| 384 | ee.Image.prototype.getThumbURL, arguments); |
| 385 | if (args['callback']) { |
| 386 | const callbackWrapper = (thumbId, opt_error) => { |
| 387 | let thumbUrl = ''; |
| 388 | if (opt_error === undefined) { |
| 389 | try { |
| 390 | thumbUrl = ee.data.makeThumbUrl(thumbId); |
| 391 | } catch (e) { |
| 392 | opt_error = String(e.message); |
| 393 | } |
| 394 | } |
| 395 | args['callback'](thumbUrl, opt_error); |
| 396 | }; |
| 397 | this.getThumbId(args['params'], callbackWrapper); |
| 398 | } else { |
| 399 | return ee.data.makeThumbUrl( |