setter for native horde api key

save_settings
Abdullah Alfaraj 2023-02-23 21:00:37 +03:00
parent 62f251f958
commit 0d28631e58
1 changed files with 5 additions and 0 deletions

View File

@ -353,6 +353,10 @@ function getHordeApiKey() {
const valid_key = key ? key : '0000000000'
return valid_key
}
function setHordeApiKey(key) {
document.getElementById('tiHordeApiKey').value = key
}
function checkSampler(sampler_name) {
sampler_element = getSamplerElementByName(sampler_name)
sampler_element.checked = true
@ -847,4 +851,5 @@ module.exports = {
getLinkWidthHeightState,
setLinkWidthHeightState,
isSquareThumbnail,
setHordeApiKey,
}