Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
I love how a little whitespace can bring the whole universe crashing to a halt.
  • Loading branch information
purplecabbage authored and dpogue committed Mar 15, 2019
1 parent 2052da4 commit e4304be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/templates/scripts/cordova/lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -1052,8 +1052,8 @@ function parseWhitelistUrlForATS (url, options) {
var subdomain1 = '/*.'; // wildcard in hostname
var subdomain2 = '*://*.'; // wildcard in hostname and protocol
var subdomain3 = '*://'; // wildcard in protocol only
if(!href.pathname) {
return null;
if (!href.pathname) {
return null;
} else if (href.pathname.indexOf(subdomain1) === 0) {
retObj.NSIncludesSubdomains = true;
retObj.Hostname = href.pathname.substring(subdomain1.length);
Expand Down

0 comments on commit e4304be

Please sign in to comment.