From cec7fd3996467ffe84d9737d101cf6c70e840857 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Sun, 11 Apr 2021 12:30:10 +0800 Subject: [PATCH] default param --- js/pmtiles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/pmtiles.js b/js/pmtiles.js index 927f9e2..0a59308 100644 --- a/js/pmtiles.js +++ b/js/pmtiles.js @@ -45,7 +45,7 @@ } class PMTiles { - constructor(url, options) { + constructor(url, options = {}) { this.url = url this.root = fetch(this.url,{method:'HEAD',headers:{Range:'bytes=0-511999'}}).then(resp => { // for servers like Azure, GH Pages which return 200 instead of 206