You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2019/10/13 19:58:00 UTC

[cordova-plugin-device] branch no-alert created (now b7eeb5b)

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

raphinesse pushed a change to branch no-alert
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-device.git.


      at b7eeb5b  Log error to console, not to dialog box

This branch includes the following new commits:

     new b7eeb5b  Log error to console, not to dialog box

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[cordova-plugin-device] 01/01: Log error to console, not to dialog box

Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch no-alert
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-device.git

commit b7eeb5b8cfe023b88ea4a6f499478c05f8e813cd
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Sun Oct 13 21:57:47 2019 +0200

    Log error to console, not to dialog box
---
 www/device.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/device.js b/www/device.js
index 41ed04f..102e342 100644
--- a/www/device.js
+++ b/www/device.js
@@ -64,7 +64,7 @@ function Device () {
             channel.onCordovaInfoReady.fire();
         }, function (e) {
             me.available = false;
-            utils.alert('[ERROR] Error initializing Cordova: ' + e);
+            console.error('[ERROR] Error initializing cordova-plugin-device: ' + e);
         });
     });
 }


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