File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,8 +195,11 @@ async function setKeybox(content) {
195195 }
196196}
197197
198- // Function to replace aosp kb
199- document . getElementById ( "aospkb" ) . addEventListener ( "click" , async ( ) => {
198+ /**
199+ * Set aosp key
200+ * @returns {Promise<void> }
201+ */
202+ async function aospkb ( ) {
200203 const source = await execCommand ( `xxd -r -p ${ basePath } /common/.default | base64 -d` ) ;
201204 const result = await setKeybox ( source ) ;
202205 if ( result ) {
@@ -205,9 +208,12 @@ document.getElementById("aospkb").addEventListener("click", async () => {
205208 } else {
206209 showPrompt ( "prompt.key_set_error" , false ) ;
207210 }
208- } ) ;
211+ }
212+
213+ // aosp kb eventlistener
214+ document . getElementById ( "aospkb" ) . addEventListener ( "click" , async ( ) => aospkb ( ) ) ;
209215
210- // Function to replace valid kb
216+ // valid kb eventlistener
211217document . getElementById ( "validkb" ) . addEventListener ( "click" , async ( ) => {
212218 fetch ( "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/.extra" )
213219 . then ( response => {
You can’t perform that action at this time.
0 commit comments