diff --git a/www/oauth.js b/www/oauth.js index c747aeb..e8b166b 100644 --- a/www/oauth.js +++ b/www/oauth.js @@ -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');