diff --git a/src/components/ProfilerPanel.vue b/src/components/ProfilerPanel.vue index 247a60c..b1f3eda 100644 --- a/src/components/ProfilerPanel.vue +++ b/src/components/ProfilerPanel.vue @@ -22,6 +22,7 @@ let items = ref([]); function refresh() { // @ts-ignore + const cc = window['cc']; if (!cc || !cc.profiler || !cc.profiler._stats) { return; }