Skip to content

Commit 876953e

Browse files
author
Google Earth Engine Authors
committed
No public description
PiperOrigin-RevId: 739281792
1 parent 7b6e527 commit 876953e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

javascript/src/maptilemanager.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ goog.require('goog.net.XhrIo');
4343
goog.require('goog.singleton');
4444
goog.require('goog.structs.Map');
4545
goog.require('goog.structs.PriorityPool');
46-
goog.require('safevalues');
46+
goog.require('safevalues.index');
4747

4848
/**
4949
* A manager of a TokenPool.
@@ -521,9 +521,20 @@ ee.MapTileManager.Request_ = class extends goog.Disposable {
521521
var objectUrl, ok;
522522
if (xhrIo.getStatus() >= 200 && xhrIo.getStatus() < 300) {
523523
try {
524-
objectUrl = safevalues.unwrapUrl(safevalues.objectUrlFromSafeSource(
525-
/** @type {!Blob} */ (xhrIo.getResponse())));
526-
ok = (objectUrl !== safevalues.INNOCUOUS_URL.toString());
524+
objectUrl =
525+
goog.module
526+
.get('safevalues.index')
527+
.unwrapUrl(
528+
goog.module
529+
.get(
530+
'safevalues.index')
531+
.objectUrlFromSafeSource(
532+
/** @type {!Blob} */ (xhrIo.getResponse())));
533+
ok =
534+
(objectUrl !==
535+
goog.module
536+
.get('safevalues.index')
537+
.INNOCUOUS_URL.toString());
527538
} catch (e) {
528539
// Browser did not support blob response, or we made a mistake. We
529540
// will fall back to re-requesting the tile as an image since ok is

0 commit comments

Comments
 (0)