You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2022/04/01 12:15:06 UTC

[cordova-plugin-device] branch master updated: doc(README): update device.cordova info (#156)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 45a1316  doc(README): update device.cordova info (#156)
45a1316 is described below

commit 45a131697033bd8dafa8e39c20076f4fc78e3040
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Fri Apr 1 21:14:59 2022 +0900

    doc(README): update device.cordova info (#156)
---
 README.md | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index b5a7959..38316db 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,17 @@ function onDeviceReady() {
 
 ## device.cordova
 
-Get the version of Cordova running on the device.
+Returns the Cordova platform's version that is bundled in the application.
+
+The version information comes from the `cordova.js` file.
+
+This property does not display other installed platforms' version information. Only the respective running platform's version is displayed.
+
+Example:
+
+If Cordova Android 10.1.1 is installed on the Cordova project, the `cordova.js` file, in the Android application, will contain `10.1.1`.
+
+The `device.cordova` property will display `10.1.1`.
 
 ### Supported Platforms
 

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