Skip to content

Commit 8751ac4

Browse files
Fixed errant error message on save button
1 parent 1e5066e commit 8751ac4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

2024/11/herald-trends/script.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,9 @@ document.addEventListener('DOMContentLoaded', function () {
853853
document.body.appendChild(anchor);
854854
anchor.click();
855855
document.body.removeChild(anchor);
856-
857-
console.error('Web Share API does not support file sharing on this device.');
856+
if (tryToShare) {
857+
console.error('Web Share API does not support file sharing on this device.');
858+
}
858859
}
859860
};
860861
} catch (error) {

0 commit comments

Comments
 (0)