mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-10-20 23:46:59 +00:00
Correct default remote audio state
This commit is contained in:
1 parent
fb85ea15da
commit
c3d72f8c71
2 files changed
+4
-5
No files matched your search
+2
-3
@@ -785,9 +785,8 @@ function onWindowLoad(){
|
||||
// Load stored remote audio prefs
|
||||
chrome.storage.sync.get('remoteAudio', function(previousValue) {
|
||||
if(previousValue.remoteAudio == null) {
|
||||
document.querySelector('#externalAudioBtn').MaterialIconToggle.check();
|
||||
return;
|
||||
} else if(previousValue.remoteAudio == false) {
|
||||
document.querySelector('#externalAudioBtn').MaterialIconToggle.uncheck();
|
||||
} else if (previousValue.remoteAudio == false) {
|
||||
document.querySelector('#externalAudioBtn').MaterialIconToggle.uncheck();
|
||||
} else {
|
||||
document.querySelector('#externalAudioBtn').MaterialIconToggle.check();
|
||||
|
||||
Reference in new issue
Block a user