We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad7b065 commit c4d0600Copy full SHA for c4d0600
projects/ngx-metrika/src/lib/ngx-metrika.service.ts
@@ -149,7 +149,7 @@ export class NgxMetrikaService {
149
const s = document.createElement('script');
150
s.type = 'text/javascript';
151
s.async = true;
152
- s.src = this.sanitizer.bypassSecurityTrustResourceUrl('https://mc.yandex.ru/metrika/tag.js').toString();
+ s.src = this.sanitizer.bypassSecurityTrustScript('https://mc.yandex.ru/metrika/tag.js').toString();
153
const insetScriptTag = () => head.appendChild(s);
154
155
if ((window as any).opera === '[object Opera]') {
0 commit comments