Skip to content

Commit c721663

Browse files
authored
update App.xaml.cs
remove telemetry
1 parent 4d50381 commit c721663

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

Bloxstrap/App.xaml.cs

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Reflection;
1+
using System.Printing;
2+
using System.Reflection;
23
using System.Security.Cryptography;
34
using System.Windows;
45
using System.Windows.Shell;
@@ -14,15 +15,15 @@ namespace Bloxstrap
1415
public partial class App : Application
1516
{
1617
#if QA_BUILD
17-
public const string ProjectName = "Bloxstrap-QA";
18+
public const string ProjectName = "Shitstrap-QA";
1819
#else
19-
public const string ProjectName = "Bloxstrap";
20+
public const string ProjectName = "Shitstrap";
2021
#endif
21-
public const string ProjectOwner = "Bloxstrap";
22-
public const string ProjectRepository = "bloxstraplabs/bloxstrap";
23-
public const string ProjectDownloadLink = "https://bloxstraplabs.com";
24-
public const string ProjectHelpLink = "https://github.com/bloxstraplabs/bloxstrap/wiki";
25-
public const string ProjectSupportLink = "https://github.com/bloxstraplabs/bloxstrap/issues/new";
22+
public const string ProjectOwner = "node4js";
23+
public const string ProjectRepository = "node4js/shitstrap";
24+
public const string ProjectDownloadLink = "";
25+
public const string ProjectHelpLink = "";
26+
public const string ProjectSupportLink = "";
2627

2728
public const string RobloxPlayerAppName = "RobloxPlayerBeta";
2829
public const string RobloxStudioAppName = "RobloxStudioBeta";
@@ -157,11 +158,11 @@ public static async void SendStat(string key, string value)
157158

158159
try
159160
{
160-
await HttpClient.GetAsync($"https://bloxstraplabs.com/metrics/post?key={key}&value={value}");
161+
161162
}
162163
catch (Exception ex)
163164
{
164-
Logger.WriteException("App::SendStat", ex);
165+
165166
}
166167
}
167168

@@ -172,14 +173,11 @@ public static async void SendLog()
172173

173174
try
174175
{
175-
await HttpClient.PostAsync(
176-
$"https://bloxstraplabs.com/metrics/post-exception",
177-
new StringContent(Logger.AsDocument)
178-
);
176+
179177
}
180178
catch (Exception ex)
181179
{
182-
Logger.WriteException("App::SendLog", ex);
180+
183181
}
184182
}
185183

@@ -192,7 +190,10 @@ public static void AssertWindowsOSVersion()
192190
{
193191
Logger.WriteLine(LOG_IDENT, $"Detected unsupported Windows version ({Environment.OSVersion.Version}).");
194192

195-
if (!LaunchSettings.QuietFlag.Active)
193+
if (LaunchSettings.QuietFlag.Active)
194+
{
195+
}
196+
else
196197
Frontend.ShowMessageBox(Strings.App_OSDeprecation_Win7_81, MessageBoxImage.Error);
197198

198199
Terminate(ErrorCode.ERROR_INVALID_FUNCTION);
@@ -241,8 +242,6 @@ protected override void OnStartup(StartupEventArgs e)
241242
// see https://aka.ms/applicationconfiguration.
242243
ApplicationConfiguration.Initialize();
243244

244-
HttpClient.Timeout = TimeSpan.FromSeconds(30);
245-
HttpClient.DefaultRequestHeaders.Add("User-Agent", userAgent);
246245

247246
LaunchSettings = new LaunchSettings(e.Args);
248247

0 commit comments

Comments
 (0)