Added comment to indicate API key

This commit is contained in:
Liam Cardenas 2017-12-05 17:16:06 -08:00
parent 4a31ed229b
commit 920a54c810

View file

@ -55,17 +55,13 @@ document.addEventListener("click", event => {
let hrefParts = window.location.href.split("#"); let hrefParts = window.location.href.split("#");
let element = target.title || target.text.trim(); let element = target.title || target.text.trim();
if (element) { if (element) {
amplitude amplitude.getInstance().logEvent("CLICK", {
.getInstance()
.logEvent("CLICK", {
target: element, target: element,
location: location:
hrefParts.length > 1 ? hrefParts[hrefParts.length - 1] : "/", hrefParts.length > 1 ? hrefParts[hrefParts.length - 1] : "/",
}); });
} else { } else {
amplitude amplitude.getInstance().logEvent("UNMARKED_CLICK", {
.getInstance()
.logEvent("UNMARKED_CLICK", {
location: location:
hrefParts.length > 1 ? hrefParts[hrefParts.length - 1] : "/", hrefParts.length > 1 ? hrefParts[hrefParts.length - 1] : "/",
}); });
@ -90,9 +86,8 @@ var init = function() {
function onDaemonReady() { function onDaemonReady() {
lbry.status().then(info => { lbry.status().then(info => {
amplitude amplitude.getInstance().init(
.getInstance() // Amplitude API Key
.init(
"0b130efdcbdbf86ec2f7f9eff354033e", "0b130efdcbdbf86ec2f7f9eff354033e",
info.lbry_id, info.lbry_id,
null, null,