Verified Commit c0a1497d authored by Booteille's avatar Booteille

Always enable audio mode when toggled on, even if URL parameters are disabled

parent c09fdbab
......@@ -7,9 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
## [0.14.0] - 2019-10-11
### Added
- [Invidious] Add `m.youtube.com` to domains to redirect.
- [Nitter] Enforce CSP for embeds
- [Nitter] Enforce CSP for embeds. #40
### Changed
- [Invidious] Always enable audio mode when toggled on, even if URL parameters are disabled. #37
### Fixed
- [Nitter] Fix query missing from redirection. #38
......@@ -250,6 +255,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Initial release
[0.14.0]: https://gitlab.com/booteille/invidition/compare/v0.13.1...0.14.0
[0.13.1]: https://gitlab.com/booteille/invidition/compare/v0.13.0...0.13.1
[0.13.0]: https://gitlab.com/booteille/invidition/compare/v0.12.0...0.13.0
[0.12.0]: https://gitlab.com/booteille/invidition/compare/v0.11.1...0.12.0
......
......@@ -16,6 +16,9 @@ export const applySearchParams = async (url: URL) => {
const settings = await SettingsManager.load();
if (false === settings.invidious.appSettings.useParameters) {
if (settings.invidious.instanceSettings.listen && url.pathname === "/watch") {
url.searchParams.set("listen", "1");
}
return url;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment