Timeout has been extended to 10 seconds, because when device is
busy on other tasks then deviceready is not always fired
Change-Id: Ibbeef1cfa89fe34834c73b259edea13d10304457
Signed-off-by: Rafal Walczyna <r.walczyna@partner.samsung.com>
window.setTimeout(function() {
if (channel.onDeviceReady.state != 2) {
- console.log('deviceready has not fired after 5 seconds.');
+ console.log('deviceready has not fired after 10 seconds.');
logUnfiredChannels(platformInitChannelsArray);
logUnfiredChannels(channel.deviceReadyChannelsArray);
}
-}, 5000);
+}, 10000);
//Replace navigator before any modules are required(), to ensure it happens as soon as possible.
//We replace it so that properties that can't be clobbered can instead be overridden.