[fix] mobile saving
This commit is contained in:
@@ -11,6 +11,8 @@
|
|||||||
import { LoadLocalBackup, SaveLocalBackup } from "src/ts/drive/backuplocal";
|
import { LoadLocalBackup, SaveLocalBackup } from "src/ts/drive/backuplocal";
|
||||||
import Button from "src/lib/UI/GUI/Button.svelte";
|
import Button from "src/lib/UI/GUI/Button.svelte";
|
||||||
import { exportAsDataset } from "src/ts/storage/exportAsDataset";
|
import { exportAsDataset } from "src/ts/storage/exportAsDataset";
|
||||||
|
import { Capacitor } from "@capacitor/core";
|
||||||
|
import { isNative } from "lodash";
|
||||||
let openIframe = false
|
let openIframe = false
|
||||||
let openIframeURL = ''
|
let openIframeURL = ''
|
||||||
let popup:Window = null
|
let popup:Window = null
|
||||||
@@ -61,7 +63,7 @@
|
|||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
if(await alertConfirm(language.backupConfirm)){
|
if(await alertConfirm(language.backupConfirm)){
|
||||||
localStorage.setItem('backup', 'save')
|
localStorage.setItem('backup', 'save')
|
||||||
if(isTauri || isNodeServer){
|
if(isTauri || isNodeServer || Capacitor.isNativePlatform()){
|
||||||
checkDriver('savetauri')
|
checkDriver('savetauri')
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@@ -76,7 +78,7 @@
|
|||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
if((await alertConfirm(language.backupLoadConfirm)) && (await alertConfirm(language.backupLoadConfirm2))){
|
if((await alertConfirm(language.backupLoadConfirm)) && (await alertConfirm(language.backupLoadConfirm2))){
|
||||||
localStorage.setItem('backup', 'load')
|
localStorage.setItem('backup', 'load')
|
||||||
if(isTauri || isNodeServer){
|
if(isTauri || isNodeServer || Capacitor.isNativePlatform()){
|
||||||
checkDriver('loadtauri')
|
checkDriver('loadtauri')
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
Reference in New Issue
Block a user