From 0d28631e5820485abf562ec85c8f1571d4e22738 Mon Sep 17 00:00:00 2001 From: Abdullah Alfaraj Date: Thu, 23 Feb 2023 21:00:37 +0300 Subject: [PATCH] setter for native horde api key --- utility/html_manip.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utility/html_manip.js b/utility/html_manip.js index 846df53..d0b0c81 100644 --- a/utility/html_manip.js +++ b/utility/html_manip.js @@ -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, }