Skip to content

Commit

Permalink
Update target topper self embed check
Browse files Browse the repository at this point in the history
  • Loading branch information
andregoncalvesdev committed Jan 26, 2024
1 parent bc71248 commit 090c3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/topper-web-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class TopperWebSdk {
this.isInitialized = true;

const baseUrl = this.config.environment === Environments.SANDBOX ? Urls.SANDBOX : Urls.PRODUCTION;
const isTopperSelfEmbed = window.location.href === Urls.WEBSITE;
const isTopperSelfEmbed = window.location.href.includes(Urls.WEBSITE);

const queryParams = {
bt: bootstrapToken,
Expand Down

0 comments on commit 090c3ff

Please sign in to comment.