mirror of
https://github.com/zoriya/react-native-background-downloader.git
synced 2026-05-31 17:23:13 +00:00
fix main file location. fix parse json
This commit is contained in:
+2
-1
@@ -100,8 +100,9 @@ export default class DownloadTask {
|
||||
|
||||
tryParseJson (element) {
|
||||
try {
|
||||
if (element)
|
||||
if (typeof element === 'string')
|
||||
element = JSON.parse(element)
|
||||
|
||||
return element
|
||||
} catch (e) {
|
||||
console.warn('DownloadTask tryParseJson', e)
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
"name": "Elad Gil"
|
||||
}
|
||||
],
|
||||
"main": "index.js",
|
||||
"main": "index.ts",
|
||||
"types": "index.d.ts",
|
||||
"files": [
|
||||
"README.md",
|
||||
|
||||
Reference in New Issue
Block a user