Skip to content

Commit 3b55200

Browse files
authored
fix: analyze don't work in safari (#1761)
1 parent 6bb60db commit 3b55200

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

client/dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/index.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ function App() {
159159
}
160160
};
161161
useEffect(() => {
162-
window.addEventListener('load', () => {
163-
setChartData(window?.chartData);
164-
});
162+
setChartData(window?.chartData);
165163
window.addEventListener('resize', resize);
166164
return () => {
167165
window.removeEventListener('resize', resize);

examples/normal/mako.config.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"analyze": {},
23
"devServer": {
34
"host": "127.0.0.1",
45
"port": 3000

0 commit comments

Comments
 (0)