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 145ed94 commit dcd9c7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<script src="./eruda.js"></script>
<script src="./src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="./cordova.js"></script>


<link rel="stylesheet" href="./css/bootstrap.min.css">
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('storage/emulated/0/Android/data/com.ace.code/files/settings.json', { create: true, exclusive: false }, function(fileEntry) {
fs.root.getFile(`${extFs}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 dcd9c7f

Please sign in to comment.