CB-10428 Fix syntax error when browserifying inAppBrowser plugin
github close #141
This commit is contained in:
parent
8da5e25eee
commit
2e0dc26eaa
@ -19,6 +19,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
(function() {
|
||||||
// special patch to correctly work on Ripple emulator (CB-9760)
|
// special patch to correctly work on Ripple emulator (CB-9760)
|
||||||
if (window.parent && !!window.parent.ripple) { // https://gist.github.com/triceam/4658021
|
if (window.parent && !!window.parent.ripple) { // https://gist.github.com/triceam/4658021
|
||||||
module.exports = window.open.bind(window); // fallback to default window.open behaviour
|
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]);
|
exec(cb, cb, "InAppBrowser", "open", [strUrl, strWindowName, strWindowFeatures]);
|
||||||
return iab;
|
return iab;
|
||||||
};
|
};
|
||||||
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user