Merge pull request #20 from adynemo/fix-mime-type

Fix mime type
This commit is contained in:
Aurélien Hamy 2022-05-08 17:52:21 +02:00 committed by GitHub
commit f6fb6f93e9
2 changed files with 19 additions and 0 deletions

View File

@ -33,6 +33,7 @@ prepare: clean install_build_deps
@echo "Hide to tray when closing (https://github.com/SibrenVasse/deezer/issues/4)"
@echo "Start in tray cli option (https://github.com/SibrenVasse/deezer/pull/12)"
@echo "Remove kernel version from User-Agent (https://github.com/aunetx/deezer-linux/pull/9)"
@echo "Avoid to set the text/html mime type (https://github.com/aunetx/deezer-linux/issues/13)"
$(foreach p, $(wildcard ./patches/*), patch -p1 -dapp < $(p);)
@echo "Append `package-append.json` to the `package.json` of the app"

View File

@ -0,0 +1,18 @@
diff --git a/build/main.js b/build/main.js
index de51acb..e2c0b9e 100644
--- a/build/main.js
+++ b/build/main.js
@@ -2897,12 +2897,7 @@
this.tray.init(),
this.updater.init(),
this.network.watch(),
- this.powerSave.check(),
- this.deepLink.getSchemes().forEach((scheme) => {
- external_electron_namespaceObject.app.setAsDefaultProtocolClient(
- scheme
- );
- });
+ this.powerSave.check();
const dzrFilter = { urls: ["*://*/*"] },
DOMAINS_WHITELIST = [
"deezer.com",