mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
Update fs.js
This commit is contained in:
parent
d3746b6902
commit
88102f5601
1 changed files with 3 additions and 3 deletions
|
@ -91,12 +91,12 @@ const showFilePickerAndReadFile = async function () {
|
|||
let file = false;
|
||||
if (res.uri.toLowerCase().endsWith('.psbt')) {
|
||||
// this is either binary file from ElectrumDesktop OR string file with base64 string in there
|
||||
file = await _readPsbtFileIntoBase64(res.fileCopyUri);
|
||||
file = await _readPsbtFileIntoBase64(decodeURI(res.uri));
|
||||
} else {
|
||||
file = await RNFS.readFile(res.fileCopyUri);
|
||||
file = await RNFS.readFile(decodeURI(res.uri));
|
||||
}
|
||||
|
||||
return { data: file, uri: res.fileCopyUri };
|
||||
return { data: file, uri: decodeURI(res.uri) };
|
||||
} catch (err) {
|
||||
if (!DocumentPicker.isCancel(err)) {
|
||||
return { data: false, uri: false };
|
||||
|
|
Loading…
Add table
Reference in a new issue