Skip to content

Commit

Permalink
Merge pull request #15 from MindsetConsulting/fix-missing-null-check
Browse files Browse the repository at this point in the history
Add null check on `name` parameter
  • Loading branch information
dpogue authored Mar 30, 2021
2 parents 7dd8e2d + 82911c3 commit 612817f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var noop = function() { };


module.exports = function(url, name, features) {
if (name.match(/^oauth:/)) {
if (name && name.match && name.match(/^oauth:/)) {
cordova.exec(noop, noop, 'OAuth', 'startOAuth', [url]);
} else {
var originalWindowOpen = modulemapper.getOriginalSymbol(window, 'open');
Expand Down

0 comments on commit 612817f

Please sign in to comment.