Skip to content

Commit

Permalink
Update Web Snippet to Browser SDK Loader (#1253)
Browse files Browse the repository at this point in the history
* Update Web Snippet enum.

* Remove web snippet.
  • Loading branch information
JacksonWeber authored Jan 5, 2024
1 parent beb1232 commit 31d2774
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 46 deletions.
4 changes: 2 additions & 2 deletions AutoCollection/WebSnippet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ class WebSnippet {

if (this._isEnabled && !this._isInitialized && this._isIkeyValid) {
if (this._statsbeat) {
this._statsbeat.addFeature(Constants.StatsbeatFeature.WEB_SNIPPET);
this._statsbeat.addFeature(Constants.StatsbeatFeature.BROWSER_SDK_LOADER);
}
this._initialize();
} else if (!this._isEnabled) {
if (this._statsbeat) {
this._statsbeat.removeFeature(Constants.StatsbeatFeature.WEB_SNIPPET);
this._statsbeat.removeFeature(Constants.StatsbeatFeature.BROWSER_SDK_LOADER);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Declarations/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export enum StatsbeatFeature {
NONE = 0,
DISK_RETRY = 1,
AAD_HANDLING = 2,
WEB_SNIPPET = 4,
BROWSER_SDK_LOADER = 4,
LIVE_METRICS = 16,
NATIVE_METRICS = 8192
}
Expand Down
72 changes: 29 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 31d2774

Please sign in to comment.