Fix build

This commit is contained in:
James Lyne 2021-05-24 19:26:45 +01:00
parent 866f73e9d3
commit 780cf3860d

View File

@ -124,7 +124,7 @@ export default defineComponent({
});
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();
}
});