Skip to content

Commit

Permalink
Fix: stop disabling the saveAs window (#247)
Browse files Browse the repository at this point in the history
* fix: stop forcing disable saveAs window

* 3.7.4
  • Loading branch information
Hugo-COLLIN authored Feb 1, 2025
1 parent e505a17 commit 7b7258c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "save-my-chatbot",
"version": "3.7.3",
"version": "3.7.4",
"license": "RMD-C 1.1",
"author": "Hugo COLLIN",
"homepage": "https://save.hugocollin.com",
Expand Down
4 changes: 4 additions & 0 deletions public/files/updateNotes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Update notes
# 3.7.4
⬇️ Download Save As dialog fixed
Some users reported that the "Save As" dialog was not showing up anymore. It is now solved!

# 3.7.3
⬇️ Firefox download bug fixed
Some users reported that the extension was not working on Firefox. The issue is now solved!
Expand Down
4 changes: 2 additions & 2 deletions src/core/services/outputMethods/outputMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ export async function download(text: string, filename: string) {
return new Promise<void>((resolve) => {
chrome.downloads.download({
url,
filename: filename + '.md',
saveAs: false
filename: filename + '.md'
}, (downloadId) => {
if (isFirefox) {
chrome.downloads.onChanged.addListener(function cleanup(delta) {
Expand All @@ -44,6 +43,7 @@ export async function download(text: string, filename: string) {
* @param filename name of the file
*/
export async function sendToWebhook(text: string, filename: string) {
// @ts-ignore
chrome.storage.sync.get('webhookUrl', async (data: { webhookUrl: any; }) => {
const webhookUrl = data.webhookUrl;
if (!webhookUrl) {
Expand Down

0 comments on commit 7b7258c

Please sign in to comment.