mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-23 04:36:52 +00:00
added send coin
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
(function() {
|
||||
console.log('External script loaded to disable qdnGatewayShowModal');
|
||||
|
||||
const timeoutDuration = 5000; // Set timeout duration to 5 seconds (5000ms)
|
||||
let elapsedTime = 0; // Track the time that has passed
|
||||
|
||||
// Poll for qdnGatewayShowModal and disable it once it's defined
|
||||
const checkQdnGatewayInterval = setInterval(() => {
|
||||
elapsedTime += 100; // Increment elapsed time by the polling interval (100ms)
|
||||
|
||||
if (typeof window.qdnGatewayShowModal === 'function') {
|
||||
console.log('Disabling qdnGatewayShowModal');
|
||||
|
||||
@@ -13,9 +18,10 @@
|
||||
|
||||
// Stop checking once qdnGatewayShowModal has been disabled
|
||||
clearInterval(checkQdnGatewayInterval);
|
||||
} else {
|
||||
console.log('Waiting for qdnGatewayShowModal to be defined...');
|
||||
}
|
||||
} else if (elapsedTime >= timeoutDuration) {
|
||||
console.log('Timeout reached, stopping polling for qdnGatewayShowModal.');
|
||||
clearInterval(checkQdnGatewayInterval); // Stop checking after 5 seconds
|
||||
}
|
||||
}, 100); // Check every 100ms
|
||||
|
||||
})();
|
||||
|
Reference in New Issue
Block a user