Skip to content

Commit

Permalink
Add leading slash to cordova_plugins.json in plugin loader
Browse files Browse the repository at this point in the history
This fixes script injection on pages which are not at the application root.
  • Loading branch information
bryanhiggins committed May 6, 2013
1 parent 93152a0 commit 8d59461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scripts/plugin_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
finishPluginLoading();
};
try { // we commented we were going to try, so let us actually try and catch
xhr.open('GET', 'cordova_plugins.json', true); // Async
xhr.open('GET', '/cordova_plugins.json', true); // Async
xhr.send();
} catch(err){
finishPluginLoading();
Expand Down

0 comments on commit 8d59461

Please sign in to comment.