mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-26 03:24:18 +00:00
Enable icons
This commit is contained in:
parent
d976c80665
commit
e09c0f92bb
3 changed files with 19 additions and 3 deletions
BIN
packages/webamp/demo/images/icons/paint-file-32x32.png
Normal file
BIN
packages/webamp/demo/images/icons/paint-file-32x32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 522 B |
|
|
@ -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;
|
||||
|
|
|
|||
16
packages/webamp/demo/js/logger.ts
Normal file
16
packages/webamp/demo/js/logger.ts
Normal 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 });
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue