Enable icons

This commit is contained in:
Jordan Eldredge 2020-08-26 14:07:51 -07:00
parent d976c80665
commit e09c0f92bb
3 changed files with 19 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 522 B

View file

@ -26,11 +26,11 @@ if (config.audioUrl && !config.initialTracks) {
config.initialTracks = [{ url: config.audioUrl }];
}
export let SHOW_DESKTOP_ICONS = true;
export const SHOW_DESKTOP_ICONS = true;
if ("URLSearchParams" in window) {
const params = new URLSearchParams(location.search);
SHOW_DESKTOP_ICONS = Boolean(params.get("icons"));
// const params = new URLSearchParams(location.search);
// SHOW_DESKTOP_ICONS = Boolean(params.get("icons"));
}
export const skinUrl = config.skinUrl === undefined ? null : config.skinUrl;

View file

@ -0,0 +1,16 @@
export function log({
category,
action,
label,
}: {
category: string;
action: string;
label: string;
}) {
// @ts-ignore
if (window.ga != null) {
window.ga("send", "event", category, action, label);
} else {
// console.log({ category, action, label });
}
}