Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9921

applicationDirectory wrong on browser platform

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: cordova-plugin-file
    • Labels:

      Description

      In the code for the browser platform, applicationDirectory is defined as location.origin + "/", which with file URLs resolves to simply file:///.

      Clearly, the root of the filesystem is not generally going to be the application's directory.

      It could be tricky to figure out the right value to use here. But it would be better to indicate a lack of support (null?) than to return an obviously wrong value.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marfire Kevin Christopher Henry
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: