Repository: cordova-paramedic
Updated Branches:
  refs/heads/master 3ef549a3b -> eca89c5e8


Inject global PARAMEDIC flag to the app


Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/eca89c5e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/eca89c5e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/eca89c5e

Branch: refs/heads/master
Commit: eca89c5e8f75608cecc7e694f5b5d6c14211ff66
Parents: 3ef549a
Author: Alexander Sorokin <alexander.soro...@akvelon.com>
Authored: Thu Sep 22 17:30:33 2016 +0300
Committer: Alexander Sorokin <alexander.soro...@akvelon.com>
Committed: Thu Sep 22 17:30:33 2016 +0300

----------------------------------------------------------------------
 paramedic-plugin/JasmineParamedicProxy.js | 2 +-
 paramedic-plugin/paramedic.js             | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/eca89c5e/paramedic-plugin/JasmineParamedicProxy.js
----------------------------------------------------------------------
diff --git a/paramedic-plugin/JasmineParamedicProxy.js 
b/paramedic-plugin/JasmineParamedicProxy.js
index cfec003..4b242b3 100644
--- a/paramedic-plugin/JasmineParamedicProxy.js
+++ b/paramedic-plugin/JasmineParamedicProxy.js
@@ -1,4 +1,4 @@
-/* global window, cordova, device */
+/* global cordova, device */
 /**
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/eca89c5e/paramedic-plugin/paramedic.js
----------------------------------------------------------------------
diff --git a/paramedic-plugin/paramedic.js b/paramedic-plugin/paramedic.js
index e2884b0..8fd9971 100644
--- a/paramedic-plugin/paramedic.js
+++ b/paramedic-plugin/paramedic.js
@@ -1,3 +1,4 @@
+/* global window, cordova, device, jasmine, XMLHttpRequest */
 /**
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
@@ -37,6 +38,9 @@ Paramedic.prototype.initialize = function() {
 
     this.overrideConsole();
     this.injectJasmineReporter();
+
+    // indicate our presence
+    window.PARAMEDIC = true;
 };
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to