Revert "reverted global change to cordova object, added temp? 'activate' event to windows platform"
This reverts commit 0d77ab8fce647ef93b48b1a35166570617403368.
diff --git a/src/cordova.js b/src/cordova.js
index 1ef3478..7e4377c 100644
--- a/src/cordova.js
+++ b/src/cordova.js
@@ -101,6 +101,7 @@
version:PLATFORM_VERSION_BUILD_LABEL,
platformVersion:PLATFORM_VERSION_BUILD_LABEL,
platformId:platform.id,
+ env:{},
/**
* Methods to add/remove your own addEventListener hijacking on document + window.
*/
diff --git a/src/windows/platform.js b/src/windows/platform.js
index 036d591..be72cd3 100644
--- a/src/windows/platform.js
+++ b/src/windows/platform.js
@@ -42,15 +42,9 @@
cordova.fireDocumentEvent('resume',null,true);
};
- // NOTE: this is NOT documented, and subject to change in
- // the VERY near future
var activationHandler = function activationHandler(e) {
- channel.onCordovaReady.subscribe(function() {
- // force async
- setTimeout(function(){
- cordova.fireDocumentEvent('activate',e.detail,true);
- },0);
- });
+ cordova.env = (cordova.env || { });
+ cordova.env.args = e.detail;
};
app.addEventListener("checkpoint", checkpointHandler);