-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add notification for old browsers #475
Conversation
Тут я подумал, что название |
@@ -0,0 +1,83 @@ | |||
var ie9 = (function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не стоит ли эту проверку в DG.Browser
и вынести?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Думаю, что нет, так мы не будем расширять публичные методы и в будущем сможем без колебаний ее выпилить
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ОК
Лично я не против названия |
src/doc/en/manual/map.md
Outdated
<td><code><b>museum</b></code></td> | ||
<td><code>Boolean</code></td> | ||
<td><code>true</code></td> | ||
<td>Whether the message about unsupported browser be displayed.</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
be -> will be ?
@RLRR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, точняк, надо поправить
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добавил
Поднял значение |
src/DGMuseum/src/DGMuseum.js
Outdated
@@ -70,6 +79,14 @@ DG.Map.Museum = DG.Handler.extend({ | |||
|
|||
_onCloseButtonClick: function(e) { | |||
DG.DomEvent.stop(e); | |||
|
|||
// Old Safari throws error when localStorage.getItem calls in private mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
calls → is called
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поправил
В рамках #474 добавил показ сообщения о том, что браузер пользователя не поддерживается.
Чтобы сообщение не показывалось, нужно передать в карту опцию при инициализации
museum: false
.