The config argument passed to TwistyPlayer when calling the
constructor. This interface type be useful for avoiding bugs when you would
like to create a TwistyPlayer using a dynamic config, or by combining
configs.
// Example: if the current page is https://alpha.twizzle.net/edit/?alg=M2+E2+S2 // then this gives us the "alg" param value "M2 E2 S2". constmyOverrideConfig: TwistyPlayerConfig = {}; constalgParam = newURL(location.href).searchParams.get("alg"); if (algParam) { myOverrideConfig.alg = algParam; } createTwistyPlayer(myOverrideConfig);
The config argument passed to TwistyPlayer when calling the constructor. This interface type be useful for avoiding bugs when you would like to create a TwistyPlayer using a dynamic config, or by combining configs.