Skip to content

Commit

Permalink
Merge pull request #3 from baloise/fix-default
Browse files Browse the repository at this point in the history
fix: remove error on duplicate gtm load
  • Loading branch information
yannickholzenkamp committed Jul 7, 2021
2 parents fc2c03e + 1aa5cd2 commit 34cb1d9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/google-tag-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export class BalGoogleTagManager {
public load(settings: GtmSettings): void {
if (!this.isEnabled()) {
this.runGtmScript(settings.apiKey);
} else {
throw new Error('Google Tag Manager API loaded already');
}
}

Expand Down

0 comments on commit 34cb1d9

Please sign in to comment.