Skip to content

Commit

Permalink
Fix website name not appearing when installed
Browse files Browse the repository at this point in the history
  • Loading branch information
campos02 committed Dec 9, 2024
1 parent ed12a42 commit 2018a9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Website Volume",
"description": "Allows changing tab volume on per website basis",
"version": "1.1.1",
"version": "1.1.2",
"icons": {
"16": "images/icon-16.png",
"32": "images/icon-32.png",
Expand Down
9 changes: 6 additions & 3 deletions popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ async function setSelectedGain() {
chrome.storage.sync.set({ websites: [...websites] });
}

// Initial run and retrieval from storage
volumeOutput.textContent = volumeSlider.value + "%";
getSavedWebsite().then(async (website) => {
const tab = await getCurrentTab();
getCurrentTab().then((tab) => {
displayedWebsite.innerText = new URL(tab.url).hostname;
});

// Initial run and retrieval from storage
getSavedWebsite().then(async (website) => {
const tab = await getCurrentTab();

// If volume is boosted
if (website.gain > 1) {
volumeSlider.max = MAX_BOOSTED_VOLUME;
Expand Down

0 comments on commit 2018a9e

Please sign in to comment.