Skip to content

Commit

Permalink
refresh azure data
Browse files Browse the repository at this point in the history
  • Loading branch information
xqdoo00o committed Apr 15, 2024
1 parent 38aa6ae commit 16c441f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3661,6 +3661,8 @@
initRecVal();
const clearAzureRec = () => {
azureRecKey = void 0;
localStorage.removeItem(azureRecRegion + "RecData");
azureRecData = void 0;
azureRecRegion = void 0;
azureRecKeyInput.parentElement.style.display = "none";
preRecAzureRegion.parentElement.style.display = "none";
Expand Down Expand Up @@ -3744,6 +3746,8 @@
}
});
}).catch(e => {
localStorage.removeItem(azureRecRegion + "RecData");
azureRecData = void 0;
rej();
})
})
Expand Down Expand Up @@ -4515,6 +4519,8 @@
initVoiceVal();
const clearAzureVoice = () => {
azureKey = void 0;
localStorage.removeItem(azureRegion + "VoiceData");
azureVoiceData = void 0;
azureRegion = void 0;
azureRole = [];
azureStyle = [];
Expand Down Expand Up @@ -4604,6 +4610,8 @@
rej();
})
}).catch(e => {
localStorage.removeItem(azureRegion + "VoiceData");
azureVoiceData = void 0;
rej();
})
}
Expand Down Expand Up @@ -6190,7 +6198,7 @@
if (confirmAction(translations[locale]["resetSetTip"])) {
endAll();
if (existVoice === 3) localStorage.removeItem(azureRegion + "VoiceData");
if (existRec === 2) localStorage.removeItem(azureRegion + "RecData");
if (existRec === 2) localStorage.removeItem(azureRecRegion + "RecData");
let data = {};
for (let i = 0; i < localSetKeys.length; i++) {
let key = localSetKeys[i];
Expand Down

0 comments on commit 16c441f

Please sign in to comment.