Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
Add leading slash to js-modules within cordova_plugins.json
Browse files Browse the repository at this point in the history
This fixes loading of modules from HTML files not in project root.
  • Loading branch information
haahmad authored and Bryan Higgins committed May 14, 2013
1 parent b6540f5 commit 7f8b704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir) {

// Prepare the object for cordova_plugins.json.
var obj = {
file: path.join('plugins', plugin_id, module.attrib.src),
file: path.join('/plugins', plugin_id, module.attrib.src),
id: moduleName
};

Expand Down

0 comments on commit 7f8b704

Please sign in to comment.