fix(core): update

This commit is contained in:
Philipp Kunz 2019-03-25 16:07:04 +01:00
parent d24593b07c
commit 50b33a5f88
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,7 @@
import * as plugins from './websetup.plugins';
import { setupGoogleAnalytics } from './tools/ganalytics';
import { setupFullStory } from './tools/fullstory';
export interface IWebSetupConstructorOptions {
googleAnalyticsCode?: string;
@ -16,8 +17,8 @@ export class WebSetup {
setupGoogleAnalytics(optionsArg.googleAnalyticsCode);
}
if () {
if (optionsArg.fsCode) {
setupFullStory(optionsArg.fsCode)
}
}
}

View File

@ -4,13 +4,13 @@ declare global {
_fs_host: any;
}
}
export const setupFullStory = async () => {
export const setupFullStory = async (fsCodeArg: string) => {
// tslint:disable-next-line: no-string-literal
window['_fs_debug'] = false;
// tslint:disable-next-line: no-string-literal
window['_fs_host'] = 'fullstory.com';
// tslint:disable-next-line: no-string-literal
window['_fs_org'] = 'G6FC5';
window['_fs_org'] = fsCodeArg;
// tslint:disable-next-line: no-string-literal
window['_fs_namespace'] = 'FS';
(function(m, n, e, t, l, o, g, y) {