Commit 656acae
committed
fix: exports in Desktop builds
The way a Tauri app checks for the running environment has changed
between the Tauri versions 1 and 2. In the previous 2.0 builds, this was
not updated causing the regression of exports not working. This commit
checks the correct value - window.__TAURI_INTERNALS__ to fix that issue.
Ref: #1291 parent 4a4b1f6 commit 656acae
File tree
1 file changed
+12
-12
lines changed1 file changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 6 | + | |
18 | 7 | | |
19 | 8 | | |
20 | 9 | | |
| |||
31 | 20 | | |
32 | 21 | | |
33 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
0 commit comments