Skip to content
Permalink
Browse files
simplified cordova check, and it still works with ripple
  • Loading branch information
purplecabbage committed May 5, 2015
1 parent 413c874 commit d810710c1ad3bf0937fc062c98a7312f383f116b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
@@ -19,15 +19,14 @@
*
*/


if(window.cordova){
throw new Error("cordova already defined");
};


var channel = require('cordova/channel');
var platform = require('cordova/platform');

if (window.cordova && window.cordova.platformId && window.cordova.platformId == platform.id){
throw new Error("cordova already defined");
};

/**
* Intercept calls to addEventListener + removeEventListener and handle deviceready,
@@ -19,7 +19,9 @@
*
*/

if ("cordova" in window) { throw new Error("cordova already defined"); };
if(window.cordova){
throw new Error("cordova already defined");
};

/*global symbolList*/

0 comments on commit d810710

Please sign in to comment.