CB-10428 Fix syntax error when browserifying inAppBrowser plugin

github close #141
This commit is contained in:
sgrebnov 2016-01-26 12:06:49 +03:00
parent 8da5e25eee
commit 2e0dc26eaa

View File

@ -19,6 +19,7 @@
*
*/
(function() {
// special patch to correctly work on Ripple emulator (CB-9760)
if (window.parent && !!window.parent.ripple) { // https://gist.github.com/triceam/4658021
module.exports = window.open.bind(window); // fallback to default window.open behaviour
@ -107,4 +108,4 @@ module.exports = function(strUrl, strWindowName, strWindowFeatures, callbacks) {
exec(cb, cb, "InAppBrowser", "open", [strUrl, strWindowName, strWindowFeatures]);
return iab;
};
})();