Skip to content
Permalink
Browse files

default fallbacks for config bounds and center

  • Loading branch information...
morganherlocker committed May 2, 2019
1 parent a7904c5 commit 90427c6907d510c37f338573895080c0f612794c
Showing with 2 additions and 2 deletions.
  1. +2 −2 server.js
@@ -83,7 +83,7 @@ function serve(done) {
method: "GET",
path: "/boundary",
handler: (request, h) => {
return config.boundary;
return config.boundary || [0, 0, 0, 0];
}
});

@@ -92,7 +92,7 @@ function serve(done) {
method: "GET",
path: "/center",
handler: (request, h) => {
return config.center;
return config.center || [0, 0];
}
});

0 comments on commit 90427c6

Please sign in to comment.
You can’t perform that action at this time.