From 8189a0ef253eeb37446bf16dcbdb018b87a5c74e Mon Sep 17 00:00:00 2001 From: Carl Sutherland Date: Sun, 31 Aug 2025 08:37:08 -0400 Subject: [PATCH 1/2] fix: add a newline after changelog. --- scripts/release.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/release.sh b/scripts/release.sh index 495a5a9..1b3a718 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -22,6 +22,7 @@ echo "Updating CHANGELOG.md..." echo "# Changelog" echo "" ./scripts/changelog.sh "$VERSION" + echo "" # Append existing changelog if it exists if [ -f "CHANGELOG.md" ] && grep -q "^## " CHANGELOG.md; then From 0cc87080a8c25c4ffe286cc48d3f8bd02a37b4d7 Mon Sep 17 00:00:00 2001 From: Carl Sutherland Date: Sun, 31 Aug 2025 08:37:26 -0400 Subject: [PATCH 2/2] fix(#320): fix download plugin. --- js/plugins/download.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/plugins/download.js b/js/plugins/download.js index 6614006..1438b2d 100644 --- a/js/plugins/download.js +++ b/js/plugins/download.js @@ -53,7 +53,13 @@ Flotr.addPlugin('download', { D.insert(this.el, image); this.saveImageElement = image; } else { - return window.open(image.src); + // Modern browser download using data URL with hidden link + var link = document.createElement('a'); + link.download = 'chart.' + type; + link.href = image.src; // image.src is the data URL from canvas.toDataURL() + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); } },