mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 16:30:00 +02:00
add config to disable media controls
This commit is contained in:
parent
bd8a2fb287
commit
34c78dff52
2 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,8 @@ pref('zen.tabs.show-newtab-vertical', true);
|
||||||
pref('zen.view.show-newtab-button-border-top', false);
|
pref('zen.view.show-newtab-button-border-top', false);
|
||||||
pref('zen.view.show-newtab-button-top', true);
|
pref('zen.view.show-newtab-button-top', true);
|
||||||
|
|
||||||
|
perf('zen.mediacontrols.enabled', true);
|
||||||
|
|
||||||
#ifdef MOZILLA_OFFICIAL
|
#ifdef MOZILLA_OFFICIAL
|
||||||
pref('zen.rice.api.url', 'https://share.zen-browser.app', locked);
|
pref('zen.rice.api.url', 'https://share.zen-browser.app', locked);
|
||||||
pref('zen.injections.match-urls', 'https://zen-browser.app/*,https://share.zen-browser.app/*', locked);
|
pref('zen.injections.match-urls', 'https://zen-browser.app/*,https://share.zen-browser.app/*', locked);
|
||||||
|
|
|
@ -21,6 +21,8 @@ class ZenMediaController {
|
||||||
_controllerSwitchTimeout = null;
|
_controllerSwitchTimeout = null;
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
if (!Services.prefs.getBoolPref('zen.mediacontrols.enabled', true)) return;
|
||||||
|
|
||||||
this.mediaTitle = document.querySelector('#zen-media-title');
|
this.mediaTitle = document.querySelector('#zen-media-title');
|
||||||
this.mediaArtist = document.querySelector('#zen-media-artist');
|
this.mediaArtist = document.querySelector('#zen-media-artist');
|
||||||
this.mediaControlBar = document.querySelector('#zen-media-controls-toolbar');
|
this.mediaControlBar = document.querySelector('#zen-media-controls-toolbar');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue