Fix build with Typescript 4.4

This commit is contained in:
James Lyne 2021-08-27 02:40:25 +01:00
parent 227d6f5d42
commit ec115615d1

View File

@ -118,7 +118,7 @@ export abstract class LiveAtlasTileLayer extends TileLayer {
//The tile onload listener will take it from here
const blob = await response.blob();
tile.src = URL.createObjectURL(blob);
} catch(e) {
} catch(e: any) {
if (e instanceof DOMException && e.name === 'AbortError') {
return;
}