Skip to content

Commit bf83eec

Browse files
committed
TILES-7536 fix after review
1 parent c5258c3 commit bf83eec

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/DGCustomization/src/DGMap.ApiKeyValidator.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,11 @@ DG.ApiKeyValidator = DG.Class.extend({
5454
},
5555

5656
_showError: function() {
57-
var errorMessage = DG.DomUtil.create('div', 'dg-error-message');
58-
if (!this.isErrorWasShown) {
59-
errorMessage.innerHTML = 'Your RasterJS API key is invalid. Please contact [email protected] to get RasterJS API key.';
60-
61-
if (this.mapContainer) {
62-
this.mapContainer.appendChild(errorMessage);
63-
}
6457

58+
if (!this.isErrorWasShown && this.mapContainer) {
59+
var errorMessage = DG.DomUtil.create('div', 'dg-error-message');
60+
errorMessage.innerHTML = 'Your RasterJS API key is invalid. Please contact [email protected] to get RasterJS API key.';
61+
this.mapContainer.appendChild(errorMessage);
6562
this.isErrorWasShown = true;
6663
}
6764
},

0 commit comments

Comments
 (0)