Fix butterchurn links with BLM colors

This commit is contained in:
Jordan Eldredge 2020-06-04 13:14:26 -07:00
parent e5dc59d8fc
commit 3d39b4a201

View file

@ -112,10 +112,14 @@ async function main() {
let __butterchurnOptions = null;
let __initialWindowLayout = null;
if (isButterchurnSupported()) {
const params = new URLSearchParams(location.search);
const butterchurnPresetUrlParam = params.get("butterchurnPresetUrl");
const startWithMilkdropHidden =
document.body.clientWidth < MIN_MILKDROP_WIDTH ||
skinUrl != null ||
screenshot;
butterchurnPresetUrlParam == null &&
(document.body.clientWidth < MIN_MILKDROP_WIDTH ||
skinUrl != null ||
screenshot);
__butterchurnOptions = getButterchurnOptions(startWithMilkdropHidden);