Skip to content

Commit

Permalink
fix: analyze don't work in safari
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Jan 17, 2025
1 parent 6bb60db commit c084a03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/dist/index.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions client/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ function App() {
}
};
useEffect(() => {
window.addEventListener('load', () => {
setChartData(window?.chartData);
});
setChartData(window?.chartData);
window.addEventListener('resize', resize);
return () => {
window.removeEventListener('resize', resize);
Expand Down
1 change: 1 addition & 0 deletions examples/normal/mako.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"analyze": {},
"devServer": {
"host": "127.0.0.1",
"port": 3000
Expand Down

0 comments on commit c084a03

Please sign in to comment.