forked from adamlaska/circleci-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
20 lines (15 loc) · 667 Bytes
/
app.js
File metadata and controls
20 lines (15 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* eslint-disable no-unused-vars */
import * as Cookie from 'js-cookie';
import * as highlightjsBadge from 'highlightjs-badge';
import services from './services';
import site from './site';
import '../styles/main.scss';
// imports all experiments
import experiments from './experiments';
services.instantsearch.init();
services.lang.init();
services.rum.init();
// adding "Clients" to the window object so they can be accessed by other js inside Jekyll
window.Cookie = Cookie;
window.AnalyticsClient = services.AnalyticsClient; // because it only has static methods, AnalyticsClient is not instantiated
window.OptimizelyClient = new services.OptimizelyClient();