mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Correct default remote audio state
This commit is contained in:
parent
fb85ea15da
commit
c3d72f8c71
@ -74,11 +74,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label id="externalAudioBtn" class="mdl-icon-toggle mdl-js-icon-toggle mdl-js-ripple-effect" for="remoteAudioEnabledSwitch">
|
<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>
|
<i class="mdl-icon-toggle__label material-icons">volume_up</i>
|
||||||
</label>
|
</label>
|
||||||
<div id="externalAudioTooltip" class="mdl-tooltip" for="externalAudioBtn">
|
<div id="externalAudioTooltip" class="mdl-tooltip" for="externalAudioBtn">
|
||||||
Remote audio is ON
|
Remote audio
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="quitCurrentApp">
|
<button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" id="quitCurrentApp">
|
||||||
|
@ -785,8 +785,7 @@ function onWindowLoad(){
|
|||||||
// Load stored remote audio prefs
|
// Load stored remote audio prefs
|
||||||
chrome.storage.sync.get('remoteAudio', function(previousValue) {
|
chrome.storage.sync.get('remoteAudio', function(previousValue) {
|
||||||
if(previousValue.remoteAudio == null) {
|
if(previousValue.remoteAudio == null) {
|
||||||
document.querySelector('#externalAudioBtn').MaterialIconToggle.check();
|
document.querySelector('#externalAudioBtn').MaterialIconToggle.uncheck();
|
||||||
return;
|
|
||||||
} else if (previousValue.remoteAudio == false) {
|
} else if (previousValue.remoteAudio == false) {
|
||||||
document.querySelector('#externalAudioBtn').MaterialIconToggle.uncheck();
|
document.querySelector('#externalAudioBtn').MaterialIconToggle.uncheck();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user