Skip to content

Commit

Permalink
added saving file data
Browse files Browse the repository at this point in the history
  • Loading branch information
John4650-hub committed Sep 13, 2023
1 parent abae812 commit 4f03c4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions www/js/components/main_FileEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export async function onDeviceReady() {
let fE; //Helps to avoid saving the same data in various entries
function workWithFile(filePath) {
fs.root.getFile(filePath, { create: true, exclusive: false }, function(fileEntry) {

fE = fileEntry
readFile(fE);
//SAVE FILE when saveFs btn is clicked
Expand Down
2 changes: 1 addition & 1 deletion www/js/components/tabs/settingsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export default function sett(_Par) {
let fsEntry;
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,
function(fs) {
fs.root.getFile(`${extFs}settings.json`, { create: true, exclusive: false }, function(fileEntry) {
fs.root.getFile("Android/data/com.ace.code/files/settings.json", { create: true, exclusive: false }, function(fileEntry) {
fsEntry = fileEntry;
writeFile(fsEntry, jsonObj)
}, (e) => console.log(`some error:${e}`))
Expand Down

0 comments on commit 4f03c4b

Please sign in to comment.