Moved polling code together improved abstraction
Moved polling code together improved abstraction

tombolaltd/cordova-plugin-inappbrowser,tombolaltd/cordova-plugin-inappbrowser,tombolaltd/cordova-plugin-inappbrowser