@interopio/desktop 6.9.1 → 6.9.2
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/changelog.md +4 -0
- package/dist/desktop.browser.js +17 -8
- package/dist/desktop.browser.js.map +1 -1
- package/dist/desktop.browser.min.js +1 -1
- package/dist/desktop.browser.min.js.map +1 -1
- package/dist/desktop.es.js +17 -8
- package/dist/desktop.es.js.map +1 -1
- package/dist/desktop.umd.js +17 -8
- package/dist/desktop.umd.js.map +1 -1
- package/dist/desktop.umd.min.js +1 -1
- package/dist/desktop.umd.min.js.map +1 -1
- package/package.json +4 -4
package/dist/desktop.es.js
CHANGED
|
@@ -1674,12 +1674,16 @@ class WebPlatformTransport {
|
|
|
1674
1674
|
child.source.postMessage(event.data, child.origin, [data.port]);
|
|
1675
1675
|
return;
|
|
1676
1676
|
}
|
|
1677
|
-
handleConnectionRejected() {
|
|
1677
|
+
handleConnectionRejected(event) {
|
|
1678
1678
|
this.logger.debug("handling a connection rejection. Most likely the reason is that this window was not created by a glue API call");
|
|
1679
|
-
if (this.connectionReject) {
|
|
1680
|
-
|
|
1681
|
-
delete this.connectionReject;
|
|
1679
|
+
if (!this.connectionReject) {
|
|
1680
|
+
return;
|
|
1682
1681
|
}
|
|
1682
|
+
const errorMsg = typeof event.data.glue42core?.error === "string"
|
|
1683
|
+
? `Connection was rejected. ${event.data.glue42core?.error}`
|
|
1684
|
+
: "The platform connection was rejected. Most likely because this window was not created by a glue API call";
|
|
1685
|
+
this.connectionReject(errorMsg);
|
|
1686
|
+
delete this.connectionReject;
|
|
1683
1687
|
}
|
|
1684
1688
|
handleConnectionRequest(event) {
|
|
1685
1689
|
if (this.extContentConnecting) {
|
|
@@ -1863,7 +1867,7 @@ class WebPlatformTransport {
|
|
|
1863
1867
|
await this.requestConnectionPermissionFromExt();
|
|
1864
1868
|
}
|
|
1865
1869
|
getPossibleParentsInWindow(currentWindow) {
|
|
1866
|
-
return (!currentWindow || currentWindow === currentWindow.
|
|
1870
|
+
return (!currentWindow?.parent || currentWindow === currentWindow.parent) ? [] : [currentWindow.parent, ...this.getPossibleParentsInWindow(currentWindow.parent)];
|
|
1867
1871
|
}
|
|
1868
1872
|
getPossibleParentsOutsideWindow(opener, current) {
|
|
1869
1873
|
return (!opener || !current || opener === current) ? [] : [opener, ...this.getPossibleParentsInWindow(opener), ...this.getPossibleParentsOutsideWindow(opener.opener, opener)];
|
|
@@ -2934,7 +2938,7 @@ const ContextMessageReplaySpec = {
|
|
|
2934
2938
|
}
|
|
2935
2939
|
};
|
|
2936
2940
|
|
|
2937
|
-
var version$1 = "6.
|
|
2941
|
+
var version$1 = "6.5.0";
|
|
2938
2942
|
|
|
2939
2943
|
function prepareConfig$1 (configuration, ext, glue42gd) {
|
|
2940
2944
|
let nodeStartingContext;
|
|
@@ -18550,7 +18554,7 @@ function factory$3(agm) {
|
|
|
18550
18554
|
};
|
|
18551
18555
|
}
|
|
18552
18556
|
|
|
18553
|
-
var version = "6.9.
|
|
18557
|
+
var version = "6.9.2";
|
|
18554
18558
|
|
|
18555
18559
|
var prepareConfig = (options) => {
|
|
18556
18560
|
function getLibConfig(value, defaultMode, trueMode) {
|
|
@@ -20300,9 +20304,14 @@ class Intents {
|
|
|
20300
20304
|
if (request.target === "startNew") {
|
|
20301
20305
|
return handlers.filter((handler) => handler.type === "app").length > 1;
|
|
20302
20306
|
}
|
|
20303
|
-
if (
|
|
20307
|
+
if (request.target.instance) {
|
|
20304
20308
|
return false;
|
|
20305
20309
|
}
|
|
20310
|
+
if (request.target.app) {
|
|
20311
|
+
const searchedAppName = request.target.app;
|
|
20312
|
+
const instanceHandlersByAppName = handlers.filter((handler) => handler.applicationName === searchedAppName && handler.instanceId);
|
|
20313
|
+
return instanceHandlersByAppName.length > 1;
|
|
20314
|
+
}
|
|
20306
20315
|
return false;
|
|
20307
20316
|
}
|
|
20308
20317
|
async removeSingletons(handlers) {
|