mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-04 14:18:31 +00:00
feat: Dont hide popup when copying the url, b=no-bug, c=no-component
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
<hbox id="zen-site-data-header">
|
||||
<toolbarbutton id="zen-site-data-header-share"
|
||||
data-l10n-id="zen-site-data-share"
|
||||
flex="1" />
|
||||
flex="1"
|
||||
closemenu="none" />
|
||||
<toolbarbutton id="zen-site-data-header-reader-mode"
|
||||
command="View:ReaderView"
|
||||
flex="1" />
|
||||
|
||||
@@ -81,13 +81,11 @@ export class nsZenSiteDataPanel {
|
||||
}
|
||||
|
||||
#setSiteHeader() {
|
||||
const { gReaderMode } = this.window;
|
||||
|
||||
{
|
||||
const button = this.document.getElementById('zen-site-data-header-reader-mode');
|
||||
const urlbarButton = this.window.document.getElementById('reader-mode-button');
|
||||
const isActive = gReaderMode?.isActive;
|
||||
const isVisible = (urlbarButton && !urlbarButton.hidden) || isActive;
|
||||
const isActive = urlbarButton?.hasAttribute('readeractive');
|
||||
const isVisible = !urlbarButton?.hidden || isActive;
|
||||
|
||||
button.disabled = !isVisible;
|
||||
if (isActive) {
|
||||
|
||||
Reference in New Issue
Block a user