Skip to content

Commit

Permalink
Remove bogus URL
Browse files Browse the repository at this point in the history
  • Loading branch information
AMollis committed Jul 19, 2023
1 parent 4c4c21d commit 1b64994
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@ namespace Microsoft.MixedReality.Toolkit.Data
/// This will trigger notification changes by the base class once the data has been
/// parsed.
/// </para>
/// <para>
/// Note: The theme can be changed by pressing theme buttons at http://TryMRTK.com.
/// </para>
/// </remarks>
[AddComponentMenu("MRTK/Examples/Data Binding/Data Source Json Theme Test")]
public class DataSourceJsonThemeTest : DataSourceGOJson
{
[Tooltip("URL for a json data source")]
[SerializeField]
private string url = "http://TryMRTK.com/api/data";
private string url = string.Empty;

[Tooltip("How many seconds between fetching the data source and notifying all consumer of changes.")]
[SerializeField]
Expand Down Expand Up @@ -61,7 +58,7 @@ private void Update()
{
_time += Time.deltaTime;

if (_time >= secondsBetweenFetches)
if (_time >= secondsBetweenFetches && !string.IsNullOrEmpty(url))
{
_time -= secondsBetweenFetches;

Expand Down

0 comments on commit 1b64994

Please sign in to comment.