@@ -10,7 +10,6 @@ import fonts from "lib/fonts";
1010import appSettings from "lib/settings" ;
1111import FileBrowser from "pages/fileBrowser" ;
1212
13-
1413export default function terminalSettings ( ) {
1514 const title = strings [ "terminal settings" ] ;
1615 const values = appSettings . value ;
@@ -211,12 +210,15 @@ export default function terminalSettings() {
211210
212211 // Create backup
213212 const backupPath = await Terminal . backup ( ) ;
214- await system . copyToUri ( backupPath , url , "aterm_backup.tar" , console . log , console . error )
215-
216- alert (
217- strings . success . toUpperCase ( ) ,
218- `${ strings [ "backup successful" ] } .` ,
213+ await system . copyToUri (
214+ backupPath ,
215+ url ,
216+ "aterm_backup.tar" ,
217+ console . log ,
218+ console . error ,
219219 ) ;
220+
221+ alert ( strings . success . toUpperCase ( ) , `${ strings [ "backup successful" ] } .` ) ;
220222 } catch ( error ) {
221223 console . error ( "Terminal backup failed:" , error ) ;
222224 toast ( error . toString ( ) ) ;
@@ -231,8 +233,14 @@ export default function terminalSettings() {
231233 sdcard . openDocumentFile (
232234 async ( data ) => {
233235 //this will create a file at $PREFIX/atem_backup.bin
234- await system . copyToUri ( data . uri , cordova . file . dataDirectory , "aterm_backup" , console . log , console . error )
235-
236+ await system . copyToUri (
237+ data . uri ,
238+ cordova . file . dataDirectory ,
239+ "aterm_backup" ,
240+ console . log ,
241+ console . error ,
242+ ) ;
243+
236244 // Restore
237245 await Terminal . restore ( ) ;
238246
0 commit comments