mirror of
https://github.com/FranP-code/wii-shop-extension.git
synced 2025-10-12 23:52:52 +00:00
Fix button labels on popup
This commit is contained in:
@@ -26,13 +26,13 @@ document.getElementById('music-toggle').addEventListener('click', function() {
|
|||||||
console.log(data)
|
console.log(data)
|
||||||
if (data.musicEnabled) {
|
if (data.musicEnabled) {
|
||||||
// Turn off music
|
// Turn off music
|
||||||
document.getElementById('music-toggle').innerText = 'Turn on music'
|
document.getElementById('music-toggle').innerText = 'Turn on background music'
|
||||||
chrome.storage.local.set({
|
chrome.storage.local.set({
|
||||||
musicEnabled: false
|
musicEnabled: false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// Turn on music
|
// Turn on music
|
||||||
document.getElementById('music-toggle').innerText = 'Turn off music'
|
document.getElementById('music-toggle').innerText = 'Turn off background music'
|
||||||
chrome.storage.local.set({
|
chrome.storage.local.set({
|
||||||
musicEnabled: true
|
musicEnabled: true
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user