mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 23:42:53 +08:00
Set PhoneGap.UsePolling flag based upon result from CallbackServer.
This commit is contained in:
parent
8da5ad8eca
commit
315b5a59b3
@ -344,10 +344,13 @@ PhoneGap.Channel.join(function() {
|
||||
}
|
||||
else {
|
||||
var polling = prompt("usePolling", "gap_callbackServer:");
|
||||
PhoneGap.UsePolling = polling;
|
||||
if (polling == "true") {
|
||||
PhoneGap.UsePolling = true;
|
||||
PhoneGap.JSCallbackPolling();
|
||||
}
|
||||
else {
|
||||
PhoneGap.UsePolling = false;
|
||||
PhoneGap.JSCallback();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user