diff --git a/www/inappbrowser.js b/www/inappbrowser.js index a85f27e..93eb420 100644 --- a/www/inappbrowser.js +++ b/www/inappbrowser.js @@ -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 channel = require('cordova/channel'); var modulemapper = require('cordova/modulemapper');