-
-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update chart.js to v2.9.3 and moment.js to v2.24 #1115
Conversation
3b6d915
to
cbbc7d5
Compare
cbbc7d5
to
fb0abcb
Compare
Hmm, I'll change the changelog, some defaults might have changed. |
This avoids including moment.js twice since chart.js bundle included moment.js Signed-off-by: XhmikosR <[email protected]>
@DL6ER can you try again please? I downgraded to the same chart.js version, but kept the plain build so that we don't include moment.js 2x. |
Else than my comment, everything seems to work. However, why did you remove the conditional inclusion of Furthermore, how does the update of
There is no mentioning about a contained |
The previous chart.js bundle build included moment.js already. So you had it in all pages already. https://www.chartjs.org/docs/latest/getting-started/installation.html#bundled-build But we still included moment.js individually. This makes sure we don't load moment.js twice. |
So, wait does the issue still happen with my latest push? |
I didn't remove moment.js. It's there, minified. This patch is using the plan chart.js without moment.js, which we already had and just updated it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-5-1-released/35577/1 |
Also, switch to the plain chart.js build since their bundle included moment.js, thus include moment before chart.
By submitting this pull request, I confirm the following:
{please fill any appropriate checkboxes, e.g: [X]}
{Please ensure that your pull request is for the 'devel' branch!}
git rebase
)git commit --signoff
)This is untested
The chartjs bundle had moment.js bundled. This patch switches to the normal dist file and includes moment.js separately.