diff --git a/MatterControlLib/ApplicationView/ApplicationController.cs b/MatterControlLib/ApplicationView/ApplicationController.cs index 28a1ec0b1..724954941 100644 --- a/MatterControlLib/ApplicationView/ApplicationController.cs +++ b/MatterControlLib/ApplicationView/ApplicationController.cs @@ -561,18 +561,6 @@ namespace MatterHackers.MatterControl public static void LaunchBrowser(string targetUri) { - string AddQueryPram(string url, string key, string value) - { - if (url.Contains("?")) - { - return url + "&" + key + "=" + value; - } - else - { - return url + "?" + key + "=" + value; - } - } - UiThread.RunOnIdle(() => { var affiliateCode = OemSettings.Instance.AffiliateCode; @@ -591,11 +579,11 @@ namespace MatterHackers.MatterControl // if the affiliateCode is only numbers, we assume it is a tracking code if (affiliateCode.All(char.IsDigit)) { - targetUri = AddQueryPram(targetUri, "aff", affiliateCode); + targetUri = Util.AddQueryPram(targetUri, "aff", affiliateCode); } else // it is an RCODE { - targetUri = AddQueryPram(targetUri, "rcode", affiliateCode); + targetUri = Util.AddQueryPram(targetUri, "rcode", affiliateCode); } targetUri += internalLink; diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 14c60fae1..5dacdecba 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 14c60fae139097572d0e59c87395d0d4fb8851cc +Subproject commit 5dacdecba55ff110e8a167d1fb706d3ae39afdda