Skip to content

Commit dda6905

Browse files
committed
#263 Back / forward buttons not visible on tauri build
1 parent b332704 commit dda6905

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
This changelog covers all three packages, as they are (for now) updated as a whole
44

5+
## UNRELEASED
6+
7+
- Fix back / forward buttons in desktop build #263
8+
59
## v0.34.0
610

711
- Add folders with list & grid views, allow drag & drop uploads #228

data-browser/src/helpers/tauri.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
declare global {
44
interface Window {
5-
__TAURI__: unknown;
5+
__TAURI_METADATA__: unknown;
66
}
77
}
88

99
export function isRunningInTauri(): boolean {
10-
return typeof window !== 'undefined' && window.__TAURI__ !== undefined;
10+
return (
11+
typeof window !== 'undefined' && window.__TAURI_METADATA__ !== undefined
12+
);
1113
}

0 commit comments

Comments
 (0)