Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 261bf86

Browse filesBrowse files
committed
fix(ios): getAllJSON fix
1 parent 4894485 commit 261bf86
Copy full SHA for 261bf86

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎packages/core/platforms/ios/src/NSApplicationSettings.swift

Copy file name to clipboardExpand all lines: packages/core/platforms/ios/src/NSApplicationSettings.swift
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ class NSApplicationSettings : NSObject {
6363
jsonDictionary.setObject(urlValue.absoluteString, forKey: key as NSString)
6464
}
6565
default:
66-
jsonDictionary.setObject(value, forKey: key as NSString)
66+
if (JSONSerialization.isValidJSONObject(value)) {
67+
jsonDictionary.setObject(value, forKey: key as NSString)
68+
}
6769
}
68-
} else {
70+
} else if (JSONSerialization.isValidJSONObject(value)) {
6971
jsonDictionary.setObject(value, forKey: key as NSString)
7072
}
7173
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.