@crowdstrike/foundry-js 0.10.1 → 0.12.0
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/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2799,10 +2799,10 @@ class Navigation {
|
|
2799
2799
|
if (!('preventDefault' in event)) {
|
2800
2800
|
return;
|
2801
2801
|
}
|
2802
|
-
event.preventDefault();
|
2803
2802
|
if (!(event.target instanceof HTMLAnchorElement)) {
|
2804
|
-
|
2803
|
+
return;
|
2805
2804
|
}
|
2805
|
+
event.preventDefault();
|
2806
2806
|
const path = event.target.getAttribute('href');
|
2807
2807
|
defaultTarget =
|
2808
2808
|
event.target.getAttribute('target') ??
|
@@ -2975,12 +2975,15 @@ class FalconApi {
|
|
2975
2975
|
* This establishes a connection to send messages between the extension and the Falcon Console. Only when established you will be able to call other APIs.
|
2976
2976
|
*/
|
2977
2977
|
async connect() {
|
2978
|
-
const
|
2979
|
-
|
2980
|
-
|
2981
|
-
|
2978
|
+
const response = await this.bridge.postMessage({ type: 'connect' });
|
2979
|
+
if (response !== undefined) {
|
2980
|
+
const { origin, data } = response;
|
2981
|
+
this.bridge.setOrigin(origin);
|
2982
|
+
this.data = data;
|
2983
|
+
this.updateTheme(data?.theme);
|
2984
|
+
this.isConnected = true;
|
2985
|
+
}
|
2982
2986
|
this.resizeTracker = new ResizeTracker(this.bridge);
|
2983
|
-
this.isConnected = true;
|
2984
2987
|
}
|
2985
2988
|
/**
|
2986
2989
|
* The ID of the Foundry app this UI extension belongs to.
|