Skip to content

Commit 1a04182

Browse files
committed
fix after review
1 parent ed45406 commit 1a04182

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config.main.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
"baseUrl": "//maps.api.2gis.ru/2.0",
3535
"key": "c5e4d7ec-f9d0-470f-b7f0-278f622f20e2",
36+
"defaultKey": "c5e4d7ec-f9d0-470f-b7f0-278f622f20e2",
3637

3738
"keyServer": "https://keys.api.2gis.com/public/v1/keys/",
3839
"keyServices": "/services/tiles-raster-api",

src/DGAttribution/src/DGAttribution.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,8 @@ DG.Control.Attribution.include({
111111
map._copyright = true;
112112
this._first = true;
113113
}
114-
// TODO у нас на бекенде сейчас пустой ключ и пока мы его не добавили будет браться ключ по дефолту из конфигов, как только мы его туда положим копирайт об ошибке пропадёт потом можно убрать без последствий
115-
this._defaultKey = 'c5e4d7ec-f9d0-470f-b7f0-278f622f20e2';
116-
this._key = map.options.key || DG.config.key !== this._defaultKey;
114+
115+
this._key = map.options.key || DG.config.key !== DG.config.defaultKey;
117116
this._logotype = map.options.logotype;
118117
this._open2gis = this._getLink('open_link')
119118

0 commit comments

Comments
 (0)