In the middle of replacing fs and project functions

This commit is contained in:
49lf
2024-07-23 17:16:26 -04:00
parent a1aadd3fb8
commit 15698c6d42
40 changed files with 281 additions and 148 deletions

View File

@ -1,4 +1,4 @@
import { isTauri } from './isTauri'
import { isDesktop } from './isDesktop'
import { deserialize_files } from '../wasm-lib/pkg/wasm_lib'
import { browserSaveFile } from './browserSaveFile'
import { save } from '@tauri-apps/plugin-dialog'
@ -9,7 +9,7 @@ import ModelingAppFile from './modelingAppFile'
const save_ = async (file: ModelingAppFile) => {
try {
if (isTauri()) {
if (isDesktop()) {
const extension = file.name.split('.').pop() || null
let extensions: string[] = []
if (extension !== null) {