apache / cordova-serve
Showing 1 of 1 files from the diff.

@@ -78,8 +78,9 @@
Loading
78 78
    }
79 79
80 80
    try {
81 -
        const Api = require(path.join(cordovaProjectRoot, 'platforms', platformName, 'cordova/Api'));
82 -
        return new Api().locations.www;
81 +
        const platformRootFolder = path.join(cordovaProjectRoot, 'platforms', platformName);
82 +
        const Api = require(path.join(platformRootFolder, 'cordova/Api'));
83 +
        return new Api(platformName, platformRootFolder).locations.www;
83 84
    } catch (e) {
84 85
        // Fallback on hardcoded paths if platform api not found
85 86
        return path.join(cordovaProjectRoot, 'platforms', platformName, platform.www_dir);
Files Coverage
src 27.98%
Project Totals (6 files) 27.98%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading