Skip to content

Commit

Permalink
Add null check on name parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
esjewett committed Mar 30, 2021
1 parent 7dd8e2d commit 82911c3
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 82911c3

Please sign in to comment.