File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 88
99| Statements | Branches | Functions | Lines |
1010| ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
11- | ![ Statements] ( https://img.shields.io/badge/statements-87.96 %25-yellow.svg?style=flat&logo=jest ) | ![ Branches] ( https://img.shields.io/badge/branches-72.5%25-red.svg?style=flat&logo=jest ) | ![ Functions] ( https://img.shields.io/badge/functions-81.81%25-yellow.svg?style=flat&logo=jest ) | ![ Lines] ( https://img.shields.io/badge/lines-88.65 %25-yellow.svg?style=flat&logo=jest ) |
11+ | ![ Statements] ( https://img.shields.io/badge/statements-87.38 %25-yellow.svg?style=flat&logo=jest ) | ![ Branches] ( https://img.shields.io/badge/branches-72.5%25-red.svg?style=flat&logo=jest ) | ![ Functions] ( https://img.shields.io/badge/functions-81.81%25-yellow.svg?style=flat&logo=jest ) | ![ Lines] ( https://img.shields.io/badge/lines-88%25-yellow.svg?style=flat&logo=jest ) |
1212
1313## Table of Contents
1414
Original file line number Diff line number Diff line change @@ -121,7 +121,12 @@ export const jsDownload = (
121121export default function useDownloader (
122122 options : UseDownloaderOptions = { }
123123) : UseDownloader {
124- const debugMode = process ? ! ! process ?. env ?. REACT_APP_DEBUG_MODE : false ;
124+ let debugMode = false ;
125+ try {
126+ debugMode = process ? ! ! process ?. env ?. REACT_APP_DEBUG_MODE : false ;
127+ } catch {
128+ debugMode = false ;
129+ }
125130
126131 const [ elapsed , setElapsed ] = useState ( 0 ) ;
127132 const [ percentage , setPercentage ] = useState ( 0 ) ;
You can’t perform that action at this time.
0 commit comments