Closed glutanimate closed 2 years ago
Node.js' require conflicts with Anki's native require() which add-ons like Stats Plus expose in the main web view.
Since cal-heatmap uses the window.d3 global anyway within the context of Anki, dropping this should have no unintended side-effects.
In the future we might want to switch to ES6 imports, but that will likely require upgrading cal-heatmap.
Fixes #149
Node.js' require conflicts with Anki's native require() which add-ons like Stats Plus expose in the main web view.
Since cal-heatmap uses the window.d3 global anyway within the context of Anki, dropping this should have no unintended side-effects.
In the future we might want to switch to ES6 imports, but that will likely require upgrading cal-heatmap.
Fixes #149