diff options
Diffstat (limited to 'web_src/js/features/heatmap.js')
-rw-r--r-- | web_src/js/features/heatmap.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/web_src/js/features/heatmap.js b/web_src/js/features/heatmap.js index 363be5ca75..6e6202e866 100644 --- a/web_src/js/features/heatmap.js +++ b/web_src/js/features/heatmap.js @@ -1,4 +1,4 @@ -import Vue from 'vue'; +import {createApp} from 'vue'; import ActivityHeatmap from '../components/ActivityHeatmap.vue'; export default function initHeatmap() { @@ -17,11 +17,9 @@ export default function initHeatmap() { return {date: new Date(v), count: heatmap[v]}; }); - const View = Vue.extend({ - render: (createElement) => createElement(ActivityHeatmap, {props: {values}}), - }); + const View = createApp(ActivityHeatmap, {values}); - new View().$mount(el); + View.mount(el); } catch (err) { console.error('Heatmap failed to load', err); el.textContent = 'Heatmap failed to load'; |