mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-21 23:21: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;
|
if (event?.data?.requestedHandler !== 'UI') return;
|
||||||
|
|
||||||
const sendMessageToRuntime = (message, eventPort) => {
|
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
|
window
|
||||||
.sendMessage(
|
.sendMessage(
|
||||||
message.action,
|
message.action,
|
||||||
message.payload,
|
message.payload,
|
||||||
300000,
|
timeout,
|
||||||
message.isExtension,
|
message.isExtension,
|
||||||
{
|
{
|
||||||
name: appName,
|
name: appName,
|
||||||
|
@ -25,7 +25,7 @@ window.addEventListener('message', (event) => {
|
|||||||
export const sendMessageBackground = (
|
export const sendMessageBackground = (
|
||||||
action,
|
action,
|
||||||
data = {},
|
data = {},
|
||||||
timeout = 240000,
|
timeout = 600000,
|
||||||
isExtension,
|
isExtension,
|
||||||
appInfo,
|
appInfo,
|
||||||
skipAuth
|
skipAuth
|
||||||
|
Loading…
x
Reference in New Issue
Block a user