mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-21 15:11:21 +00:00
fixes
This commit is contained in:
parent
df8a167c11
commit
584f170fc5
@ -566,11 +566,21 @@ export const useQortalMessageListener = (
|
||||
if (event?.data?.requestedHandler !== 'UI') return;
|
||||
|
||||
const sendMessageToRuntime = (message, eventPort) => {
|
||||
let timeout: number = 300000;
|
||||
if (
|
||||
message?.action === 'PUBLISH_MULTIPLE_QDN_RESOURCES' &&
|
||||
message?.payload?.resources?.length > 0
|
||||
) {
|
||||
timeout = message?.payload?.resources?.length * 1200000;
|
||||
} else if (message?.action === 'PUBLISH_QDN_RESOURCE') {
|
||||
timeout = 1200000;
|
||||
}
|
||||
|
||||
window
|
||||
.sendMessage(
|
||||
message.action,
|
||||
message.payload,
|
||||
300000,
|
||||
timeout,
|
||||
message.isExtension,
|
||||
{
|
||||
name: appName,
|
||||
|
@ -25,7 +25,7 @@ window.addEventListener('message', (event) => {
|
||||
export const sendMessageBackground = (
|
||||
action,
|
||||
data = {},
|
||||
timeout = 240000,
|
||||
timeout = 600000,
|
||||
isExtension,
|
||||
appInfo,
|
||||
skipAuth
|
||||
|
Loading…
x
Reference in New Issue
Block a user