Skip to content

Commit

Permalink
Merge pull request #1189 from dbauszus-glx/imports-log
Browse files Browse the repository at this point in the history
Add console.log for chart and tabulator imports
  • Loading branch information
RobAndrewHurst authored Mar 21, 2024
2 parents b6389d2 + cb3835a commit 49023ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ui/utils/Chart.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ async function chart(canvas, options) {
])
.then(imports => {

console.log(`imports from https://cdn.jsdelivr.net/npm/chart.js/+esm`)

// Register imports
imports[0].Chart.register(...imports[0].registerables);

Expand Down
2 changes: 2 additions & 0 deletions lib/ui/utils/tabulator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ async function tabulator() {
])
.then(imports => {

console.log(`imports from https://unpkg.com/[email protected]/dist/js/tabulator_esm.min.js`)

Tabulator = imports[0].TabulatorFull

resolve()
Expand Down

0 comments on commit 49023ba

Please sign in to comment.