Fix build
This commit is contained in:
parent
866f73e9d3
commit
780cf3860d
@ -124,7 +124,7 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener('contextmenu', e => {
|
window.addEventListener('contextmenu', e => {
|
||||||
if(e.target.classList.contains('leaflet-zoom-animated')) {
|
if(e.target && e.target instanceof HTMLElement && e.target.classList.contains('leaflet-zoom-animated')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user