fix(core): update

This commit is contained in:
Philipp Kunz 2019-07-24 11:43:20 +02:00
parent 7375675d7d
commit 16ef41ae20
2 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ export const setupFullStory = async (fsCodeArg: string) => {
o = n.createElement(t);
o.async = 1;
o.src = 'https://' + window._fs_host + '/s/fs.js';
o.crossorigin = 'anonymous';
y = n.getElementsByTagName(t)[0];
y.parentNode.insertBefore(o, y);
// tslint:disable-next-line: only-arrow-functions

View File

@ -22,6 +22,7 @@ export const setupGoogleAnalytics = async (gaCode: string) => {
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
a.async = 1;
a.src = g;
a.crossorigin = 'anonymous';
m.parentNode.insertBefore(a, m);
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'analytics');