CB-9760 InAppBrowser: fallback to default window.open behavior on Ripple
This commit is contained in:
parent
c08e239143
commit
fee0d4e2d8
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user