From 0293771e1416540a81e768fcd0bbb7b0bd6f2de3 Mon Sep 17 00:00:00 2001 From: Jason Chase Date: Tue, 17 Feb 2015 14:42:54 -0500 Subject: [PATCH] CB-8444 Add a clobber for `cordova.InAppBrowser.open` (close #80) - Update doc with workaround for removing clobber --- doc/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/index.md b/doc/index.md index 598fdb3..f396f4d 100644 --- a/doc/index.md +++ b/doc/index.md @@ -42,6 +42,10 @@ For backwards compatibility, this plugin also hooks `window.open`. However, the plugin-installed hook of `window.open` can have unintended side effects (especially if this plugin is included only as a dependency of another plugin). The hook of `window.open` will be removed in a future major release. +Until the hook is removed from the plugin, apps can manually restore the default +behaviour: + + delete window.open // Reverts the call back to it's prototype's default Although `window.open` is in the global scope, InAppBrowser is not available until after the `deviceready` event.