Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Master
-
None
Description
Issue is with plugin_loader.js script. It makes a local xhr request to get the contents of cordova_plugins.json. It returns successfully, but with the status code 0 instead of 200. After doing some research (https://groups.google.com/forum/?fromgroups=#!topic/phonegap/KjHoMlLyoUA) I found out that local xhr on the file protocol returns 0.
plugin_loader checks for status code 200 at https://github.com/apache/cordova-js/blob/master/lib/scripts/plugin_loader.js#L103
I have been trying to install the javascript stuff for device motion and couldn't understand why navigator.accelerometer wasn't getting clobbered. Fixing this solved the problem.
I will look into pushing a fix for this tomorrow.
Attachments
Issue Links
- duplicates
-
CB-3029 remote page loading 2.6.0 cordova js file not work
- Closed