Skip to content

Local Overrides Sample: Manipulate UI3 loading failure handling

bp2008 edited this page Nov 15, 2023 · 1 revision

Since UI3-256, a failure of any of the initial loading steps will cause UI3 to show an error message and reload after 3000 milliseconds. This script will change the reload timer to 0 milliseconds and disable the error toast message.

To learn more about ui3-local-overrides, see: Local Overrides Scripts and Styles

ui3-local-overrides.js

BI_CustomEvent.AddListener("UI_Loading_Failed", function (arg)
{
	console.log("UI_Loading_Failed event raised.  Inspect in developer console to see event arguments:", arg);
	arg.reloadTimeoutMs = 0;
	arg.showErrorToast = false;
});
Clone this wiki locally