This is an automated email from the ASF dual-hosted git repository.

poorejc pushed a commit to branch FLAGON-469
in repository https://gitbox.apache.org/repos/asf/incubator-flagon-useralejs.git


The following commit(s) were added to refs/heads/FLAGON-469 by this push:
     new c5f0fcb  [FLAGON-468] fixes minor mistake in API examples
c5f0fcb is described below

commit c5f0fcbf2e0ceaf25faafc1cca516c49ca07eb5b
Author: poorejc <[email protected]>
AuthorDate: Tue Dec 10 20:56:16 2019 -0500

    [FLAGON-468] fixes minor mistake in API examples
---
 example/aleAPI.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/example/aleAPI.js b/example/aleAPI.js
index e11673d..fd05fb0 100644
--- a/example/aleAPI.js
+++ b/example/aleAPI.js
@@ -66,7 +66,6 @@ document.addEventListener('change', function(e) {
             sessionID: window.userale.options().sessionID,
             customLabel: "(custom) log Example!"
         });
-        window.alert()
     }
 });
 
@@ -75,8 +74,8 @@ document.addEventListener('change', function(e) {
 document.addEventListener('change', function(e){
     if (e.target.value === 'packageLog') {
         window.userale.map(function (log) {
-            var targetsForLabels = ["packaged this log"];
-            if (targetsForLabels.includes(log.details)) {
+            var targetsForLabels = ['change'];
+            if (targetsForLabels.includes(log.type)) {
                 return Object.assign({}, log, { logType: 'custom', 
customLabel: 'packageLog Example' });
             } else {
                 return log;

Reply via email to