diff options
author | bob <bcz@cs.brown.edu> | 2020-02-06 20:24:53 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-02-06 20:24:53 -0500 |
commit | 20a8b740cb7083d3b18272f51c823be289406bfb (patch) | |
tree | ce04e6b9ebed54c694b096488652129f006d115c /src/Utils.ts | |
parent | 061ed9215af59b8bc41cb3f3e8661687209341cd (diff) |
very hacky fix...
Diffstat (limited to 'src/Utils.ts')
-rw-r--r-- | src/Utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.ts b/src/Utils.ts index 9e3db9e06..0fa33dcb7 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -363,7 +363,7 @@ export function percent2frac(percent: string) { return Number(percent.substr(0, percent.length - 1)) / 100; } -export function numberRange(num: number) { return Array.from(Array(num)).map((v, i) => i); } +export function numberRange(num: number) { return num > 0 && num < 1000 ? Array.from(Array(num)).map((v, i) => i) : []; } export function returnTransparent() { return "transparent"; } |