mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 00:26:56 +00:00
Correct default remote audio state
This commit is contained in:
parent
fb85ea15da
commit
c3d72f8c71
@ -74,11 +74,11 @@
|
||||
</div>
|
||||
|
||||
<label id="externalAudioBtn" class="mdl-icon-toggle mdl-js-icon-toggle mdl-js-ripple-effect" for="remoteAudioEnabledSwitch">
|
||||
<input type="checkbox" id="remoteAudioEnabledSwitch" class="mdl-icon-toggle__input" checked>
|
||||
<input type="checkbox" id="remoteAudioEnabledSwitch" class="mdl-icon-toggle__input">
|
||||
<i class="mdl-icon-toggle__label material-icons">volume_up</i>
|
||||
</label>
|
||||
<div id="externalAudioTooltip" class="mdl-tooltip" for="externalAudioBtn">
|
||||
Remote audio is ON
|
||||
Remote audio
|
||||
</div>
|
||||
|
||||
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="quitCurrentApp">
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user