Compare commits

...

2 Commits

Author SHA1 Message Date
56bcfcdae4 1.0.4 2019-03-25 16:07:05 +01:00
50b33a5f88 fix(core): update 2019-03-25 16:07:04 +01:00
4 changed files with 7 additions and 6 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/websetup",
"version": "1.0.3",
"version": "1.0.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/websetup",
"version": "1.0.3",
"version": "1.0.4",
"private": false,
"description": "setup basic page properties",
"main": "dist/index.js",

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) {