@nexia/sdk 0.8.6 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/host.js +1 -5
- package/package.json +1 -1
package/dist/host.js
CHANGED
|
@@ -120,10 +120,6 @@ function waitForOperationPoll(signal) {
|
|
|
120
120
|
if (signal.aborted) {
|
|
121
121
|
return Promise.reject(signal.reason ?? new DOMException('Aborted', 'AbortError'));
|
|
122
122
|
}
|
|
123
|
-
const delay = typeof document !== 'undefined'
|
|
124
|
-
&& document.visibilityState === 'hidden'
|
|
125
|
-
? 3000
|
|
126
|
-
: 1200;
|
|
127
123
|
return new Promise((resolve, reject) => {
|
|
128
124
|
const aborted = () => {
|
|
129
125
|
globalThis.clearTimeout(timer);
|
|
@@ -132,7 +128,7 @@ function waitForOperationPoll(signal) {
|
|
|
132
128
|
const timer = globalThis.setTimeout(() => {
|
|
133
129
|
signal.removeEventListener('abort', aborted);
|
|
134
130
|
resolve();
|
|
135
|
-
},
|
|
131
|
+
}, 5000);
|
|
136
132
|
signal.addEventListener('abort', aborted, { once: true });
|
|
137
133
|
});
|
|
138
134
|
}
|