projects
/
platform
/
core
/
api
/
cordova-plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28d782c
)
[File] Resolve external storage only if label is defined.
author
Tomasz Marciniak
<t.marciniak@samsung.com>
Tue, 17 Nov 2015 12:52:20 +0000
(13:52 +0100)
committer
Tomasz Marciniak
<t.marciniak@samsung.com>
Thu, 19 Nov 2015 12:17:15 +0000
(13:17 +0100)
[Verification] Code compiles, pass rate: 140/140, all manual tests pass.
Change-Id: Ia0e4056d7bdcfe76bc332a4e25632bf03a9510ae
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
src/file/js/fileSystemPaths.js
patch
|
blob
|
history
diff --git
a/src/file/js/fileSystemPaths.js
b/src/file/js/fileSystemPaths.js
index
e968d6c
..
c5c9ffc
100644
(file)
--- a/
src/file/js/fileSystemPaths.js
+++ b/
src/file/js/fileSystemPaths.js
@@
-44,7
+44,11
@@
function setExternalStorage(callback) {
}
try {
- tizen.filesystem.resolve(label, onSuccessStorage, onError);
+ if (label) {
+ tizen.filesystem.resolve(label, onSuccessStorage, onError);
+ } else {
+ callback(pathsPrefix);
+ }
} catch(error) {
console.error('Failed to resolve external storage: ' + error.message);
callback(pathsPrefix);