CB-9760 InAppBrowser: fallback to default window.open behavior on Ripple

This commit is contained in:
sgrebnov 2015-10-07 11:44:07 +03:00
parent c08e239143
commit fee0d4e2d8

View File

@ -19,6 +19,12 @@
* *
*/ */
// 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
return;
}
var exec = require('cordova/exec'); var exec = require('cordova/exec');
var channel = require('cordova/channel'); var channel = require('cordova/channel');
var modulemapper = require('cordova/modulemapper'); var modulemapper = require('cordova/modulemapper');