MCPcopy
hub / github.com/KOWX712/Tricky-Addon-Update-Target-List / showPrompt

Function showPrompt

webui/scripts/main.js:190–205  ·  view source on GitHub ↗
(message, isSuccess = true, duration = 3000)

Source from the content-addressed store, hash-verified

188
189// Function to show the prompt with a success or error message
190export function showPrompt(message, isSuccess = true, duration = 3000) {
191 prompt.textContent = message;
192 prompt.classList.toggle('error', !isSuccess);
193 prompt.classList.add('show');
194 const container = document.querySelector('.prompt-container');
195 try {
196 if (container && !container.matches(':popover-open')) container.showPopover();
197 } catch (e) {}
198 if (window.promptTimeout) {
199 clearTimeout(window.promptTimeout);
200 }
201 window.promptTimeout = setTimeout(() => {
202 prompt.classList.remove('show');
203 try { if (container && container.matches(':popover-open')) container.hidePopover(); } catch (e) {}
204 }, duration);
205}
206
207/**
208 * Redirect to a link with am command

Callers 15

onMessageFunction · 0.90
fetchAndSetKeyboxFunction · 0.90
fetchCustomKeyboxFunction · 0.90
saveCustomKeyboxEntryFunction · 0.90
removeCustomKeyboxEntryFunction · 0.90
exportCustomKeyboxConfigFunction · 0.90
importCustomKeyboxConfigFunction · 0.90
about.jsFile · 0.90
downloadUpdateFunction · 0.90
installUpdateFunction · 0.90
setupSystemAppMenuFunction · 0.90
aospkbFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected