You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kevin Christopher Henry (JIRA)" <ji...@apache.org> on 2015/10/31 03:18:27 UTC
[jira] [Created] (CB-9921) applicationDirectory wrong on browser
platform
Kevin Christopher Henry created CB-9921:
-------------------------------------------
Summary: applicationDirectory wrong on browser platform
Key: CB-9921
URL: https://issues.apache.org/jira/browse/CB-9921
Project: Apache Cordova
Issue Type: Bug
Components: Plugin File
Affects Versions: Master
Reporter: Kevin Christopher Henry
Priority: Minor
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org