about summary refs log tree commit diff stats
path: root/js/dither/dither.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/dither/dither.js')
-rw-r--r--js/dither/dither.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/dither/dither.js b/js/dither/dither.js
index f7e549f..7bfdc13 100644
--- a/js/dither/dither.js
+++ b/js/dither/dither.js
@@ -24,6 +24,8 @@ document.getElementById('download').addEventListener('click', function() {
     const a = document.createElement('a'); // Create an anchor element
     a.href = dataUrl; // Set the href of the anchor to the data URL
     a.download = 'dithered-image.png'; // Set the download attribute to the desired file name
+    a.setAttribute('rel', 'noopener noreferrer');
+    a.setAttribute('target', '_blank');
     document.body.appendChild(a); // Append the anchor to the body
     a.click(); // Trigger a click on the anchor to start the download
     document.body.removeChild(a); // Remove the anchor from the body