Merge branch 'rewrite/master' into high-dpi

This commit is contained in:
Eric
2024-12-18 10:14:14 -05:00
committed by GitHub
+8 -1
View File
@@ -239,7 +239,14 @@ class MainMenuState extends MusicBeatState
function selectMerch()
{
WindowUtil.openURL(Constants.URL_MERCH);
NG.core?.calls.loader.loadReferral(false)
.addComponentParameter("referral_name", "merch_link")
.addResponseHandler(response -> {
if (response.success) WindowUtil.openURL(response.result.data.url)
else
WindowUtil.openURL(Constants.URL_MERCH);
})
.send();
}
#end