Skip to content
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

Fix: settings export in Kiwi browser #10026

Merged
merged 2 commits into from
Oct 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Fixes a issue where `darkreader-fallback` wasn't removed from the DOM, when Dark Reader finds a `<meta name="darkreader-lock">` element.
- Be stricter when the user specifies a last slash for a URL in the sitelist.
- Hide "System" Automation on Chromium on Linux because Chromium on Linux does not support Media Queries.
- Improve Kiwi browser support: work around for Kiwi bug in file download during settings import, fix opening open Dark Reader DevTools

## 4.9.58 (Sep 22, 2022)

Expand Down
3 changes: 3 additions & 0 deletions src/background/tab-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ export default class TabManager {
break;

case MessageType.UI_SAVE_FILE: {
if (__CHROMIUM_MV3__) {
break;
}
const {content, name} = message.data;
const a = document.createElement('a');
a.href = URL.createObjectURL(new Blob([content]));
Expand Down
2 changes: 1 addition & 1 deletion src/ui/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function openFile(options: {extensions: string[]}, callback: (content: st
}

export function saveFile(name: string, content: string) {
if (isFirefox) {
if (__CHROMIUM_MV3__ || isFirefox || isMobile) {
const a = document.createElement('a');
a.href = URL.createObjectURL(new Blob([content]));
a.download = name;
Expand Down