loleaflet: allow the disabling of the print handler
This commit is contained in:
parent
ed35ac63f6
commit
05e81a0edb
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ L.TileLayer = L.GridLayer.extend({
|
||||||
|
|
||||||
if (command.id === 'print') {
|
if (command.id === 'print') {
|
||||||
var isFirefox = typeof InstallTrigger !== 'undefined' || navigator.userAgent.search('Firefox') >= 0;
|
var isFirefox = typeof InstallTrigger !== 'undefined' || navigator.userAgent.search('Firefox') >= 0;
|
||||||
if (isFirefox) {
|
if (isFirefox || this._map.options.print === false) {
|
||||||
// the print dialog doesn't work well on firefox
|
// the print dialog doesn't work well on firefox
|
||||||
this._map.fire('print', {url: url});
|
this._map.fire('print', {url: url});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue