Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/Plugin/HttpRequestHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fileprivate enum ResponseType: String {
/// - Returns: The parsed value or an error
func tryParseJson(_ data: Data) -> Any {
do {
return try JSONSerialization.jsonObject(with: data, options: .mutableContainers)
return try JSONSerialization.jsonObject(with: data, options: [.mutableContainers, .fragmentsAllowed])
} catch {
return error.localizedDescription
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"fmt": "npm run prettier -- --write",
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
"prepublishOnly": "npm run build && npm run ios:build",
"prepare": "husky install"
"prepare": "husky install && npm run build"
},
"author": "Max Lynch <max@ionic.io>, Thomas Vidas <thomas@ionic.io>",
"license": "MIT",
Expand Down