Skip to content

Commit

Permalink
Activate tab preview panel after permission is granted
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Dec 24, 2024
1 parent 3a2071e commit fbad55b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion webextensions/resources/module/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ window.addEventListener('DOMContentLoaded', () => {
Permissions.bindToCheckbox(
Permissions.ALL_URLS,
document.querySelector('#allUrlsPermissionGranted'),
{ onChanged: (granted) => configs.skipCollapsedTabsForTabSwitchingShortcuts = granted }
{
onChanged: (granted) => {
if (!granted)
return;
configs.tabPreviewTooltip = true;
configs.skipCollapsedTabsForTabSwitchingShortcuts = true;
},
}
);
Permissions.bindToCheckbox(
Permissions.BOOKMARKS,
Expand Down

0 comments on commit fbad55b

Please sign in to comment.