Skip to content

Commit

Permalink
Fixes for cross-browser parity
Browse files Browse the repository at this point in the history
  • Loading branch information
Darxoon committed Jun 17, 2024
1 parent 3255299 commit a62742c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/lib/TitleCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{/each}
</ul>
<span class="build_timestamp_wrapper">
<li class="build_timestamp">Last built {buildDate.toLocaleDateString("en-UK", { dateStyle: "long" })}</li>
<div class="build_timestamp">Last built {buildDate.toLocaleDateString("en-UK", { dateStyle: "long" })}</div>
</span>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/lib/editor/fileEditor/welcomeScreen/FileTree.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import type { FileSystem } from "$lib/save/vfs";
import { waitAnimationFrame } from "$lib/util";
import { dirname } from "path-browserify";
import path from "path-browserify";
import { afterUpdate, createEventDispatcher, onMount } from "svelte";
interface FsItem {
Expand Down Expand Up @@ -64,9 +64,6 @@
async function readRawRomfsList(outFiles: FsItem[], startPath: string = "/", indentation = -1): Promise<void> {
let dir = await romfs.getDirectoryMetadata(startPath)
if (fileTree == undefined)
console.error('unde')
if (dir.name) {
outFiles.push({
path: dir.path,
Expand All @@ -78,6 +75,9 @@
})
}
dir.directories.sort((a, b) => path.basename(a).localeCompare(path.basename(b)))
dir.files.sort((a, b) => a.name.localeCompare(b.name))
for (const child of dir.directories) {
await readRawRomfsList(outFiles, child, indentation + 1)
}
Expand Down
2 changes: 0 additions & 2 deletions src/lib/save/vfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export class FileSystem {

// inspect fs
public async getDirectoryMetadata(dir: string): Promise<Directory> {
debugger //to test path module

const { isRoot, directories, files } = await this.db.directory.get(dir)
const name = path.basename(dir)

Expand Down

0 comments on commit a62742c

Please sign in to comment.