Skip to content

Commit

Permalink
Merge pull request #43 from adjust/fix-integrity
Browse files Browse the repository at this point in the history
Recalculated integrity
  • Loading branch information
YaraMatkova authored Aug 9, 2022
2 parents bc30018 + 0df5dbb commit 32e0436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ When loading the sdk through CDN we suggest using minified version. You can targ
You may want to use [Subresource Integrity (SRI)](sri-mdn) feature to mitigate XSS attacks risk. In this case you could use the loading snippet that enables SRI check instructing browser to validate the script before running it:
```html
<script type="application/javascript">
!function(t,a,e,r,n,o,s,l,d,i,u){t.Adjust=t.Adjust||{},t.Adjust_q=t.Adjust_q||[];for(var c=0;c<l.length;c++)d(t.Adjust,t.Adjust_q,l[c]);i=a.createElement(e),u=a.getElementsByTagName(e)[0],i.async=!0,i.src="https://cdn.adjust.com/adjust-latest.min.js",i.crossorigin="anonymous",i.integrity=o,i.onload=function(){for(var a=0;a<t.Adjust_q.length;a++)t.Adjust[t.Adjust_q[a][0]].apply(t.Adjust,t.Adjust_q[a][1]);t.Adjust_q=[]},u.parentNode.insertBefore(i,u)}(window,document,"script",0,0,"sha384-CjBQNn/4oEjO+JooquiRlZogj8ajC3b2XT5jnXwz53eE4KtewkHjdo6s9Fy4FK2a",0,["initSdk","getAttribution","getWebUUID","trackEvent","addGlobalCallbackParameters","addGlobalPartnerParameters","removeGlobalCallbackParameter","removeGlobalPartnerParameter","clearGlobalCallbackParameters","clearGlobalPartnerParameters","switchToOfflineMode","switchBackToOnlineMode","stop","restart","gdprForgetMe","disableThirdPartySharing","initSmartBanner"],(function(t,a,e){t[e]=function(){a.push([e,arguments])}}));
!function(t,a,e,r,n,s,o,l,d,i,u){t.Adjust=t.Adjust||{},t.Adjust_q=t.Adjust_q||[];for(var c=0;c<l.length;c++)d(t.Adjust,t.Adjust_q,l[c]);i=a.createElement(e),u=a.getElementsByTagName(e)[0],i.async=!0,i.src="https://cdn.adjust.com/adjust-latest.min.js",i.crossOrigin="anonymous",i.integrity=s,i.onload=function(){for(var a=0;a<t.Adjust_q.length;a++)t.Adjust[t.Adjust_q[a][0]].apply(t.Adjust,t.Adjust_q[a][1]);t.Adjust_q=[]},u.parentNode.insertBefore(i,u)}(window,document,"script",0,0,"sha384-+pCaiYvw8skhJvXi2IbObtUjc5tGhCdevXsPqeJelEVHz0/mKzMnkvQ758kbYM1k",0,["initSdk","getAttribution","getWebUUID","trackEvent","addGlobalCallbackParameters","addGlobalPartnerParameters","removeGlobalCallbackParameter","removeGlobalPartnerParameter","clearGlobalCallbackParameters","clearGlobalPartnerParameters","switchToOfflineMode","switchBackToOnlineMode","stop","restart","gdprForgetMe","disableThirdPartySharing","initSmartBanner"],(function(t,a,e){t[e]=function(){a.push([e,arguments])}}));
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion dist/INTEGRITY
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sha384-CjBQNn/4oEjO+JooquiRlZogj8ajC3b2XT5jnXwz53eE4KtewkHjdo6s9Fy4FK2a
sha384-+pCaiYvw8skhJvXi2IbObtUjc5tGhCdevXsPqeJelEVHz0/mKzMnkvQ758kbYM1k

0 comments on commit 32e0436

Please sign in to comment.