# HG changeset patch # User Matti Hamalainen # Date 1535974323 -10800 # Node ID bd63ecb82e614a0b39920d8c3482f1605204456f # Parent ddb36f1c515f7777f7b5477f1a2b283e50cffc84 Minor fix, avoid generating "undefined" text in the URLs. diff -r ddb36f1c515f -r bd63ecb82e61 mpui.js --- a/mpui.js Mon Sep 03 14:28:58 2018 +0300 +++ b/mpui.js Mon Sep 03 14:32:03 2018 +0300 @@ -278,8 +278,7 @@ mpUIScale = stGetSelValue(stGE("scalesID"), -1); index = stGetSelValue(stGE("paletteID"), -1); - if (index >= 0) - mpUIPalette = mpPalettes[machine[2]][index]; + mpUIPalette = (index >= 0) ? mpPalettes[machine[2]][index] : ""; stClearChildren(mpUI);