Skip to content

Commit

Permalink
Object detection fix on plist fix function (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
dki authored Jun 4, 2021
1 parent a15488b commit 1d9a904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/info-plist.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function fix (file, options, emit) {
delete data[''];
if (allowHttp) {
emit('message', 'Adding NSAllowArbitraryLoads');
if (!Object.isObject(data.NSAppTransportSecurity)) {
if (!data.NSAppTransportSecurity || (data.NSAppTransportSecurity.constructor !== Object)) {
data.NSAppTransportSecurity = {};
}
data.NSAppTransportSecurity.NSAllowsArbitraryLoads = true;
Expand Down

0 comments on commit 1d9a904

Please sign in to comment.