Skip to content

Commit

Permalink
Add shim for promises to not crash older macOS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Sep 17, 2024
1 parent b61dce5 commit a0483fe
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
1 change: 1 addition & 0 deletions apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@tauri-apps/plugin-window-state": "2.0.0-rc.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"core-js": "^3.38.1",
"date-fns": "^2.30.0",
"immer": "^10.0.4",
"lucide-react": "^0.292.0",
Expand Down
3 changes: 3 additions & 0 deletions apps/desktop/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// shim some stuff
import 'core-js/actual/promise';

import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
Expand Down
36 changes: 22 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a0483fe

Please sign in to comment.