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 2018/09/03 08:27:13 UTC

[cordova-serve] branch master updated: CB-14191 (android) Fix bug with module requiring (#10)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d05ce7c  CB-14191 (android) Fix bug with module requiring (#10)
d05ce7c is described below

commit d05ce7c0517d9df147895216a60c2697645cd951
Author: Ruslan Bikkinin <v-...@microsoft.com>
AuthorDate: Mon Sep 3 11:27:11 2018 +0300

    CB-14191 (android) Fix bug with module requiring (#10)
---
 src/util.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util.js b/src/util.js
index 57cdef2..fdb92fa 100644
--- a/src/util.js
+++ b/src/util.js
@@ -78,7 +78,7 @@ function getPlatformWwwRoot (cordovaProjectRoot, platformName) {
     }
 
     try {
-        var Api = require(path.join(cordovaProjectRoot, 'platforms', platformName, 'cordova/api'));
+        var Api = require(path.join(cordovaProjectRoot, 'platforms', platformName, 'cordova/Api'));
         return new Api().locations.www;
     } catch (e) {
         // Fallback on hardcoded paths if platform api not found


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