Skip to content

Commit

Permalink
[Editor]Remove mod domain restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
shoushou1106 committed Aug 2, 2023
1 parent d3c8aa3 commit 61b4b69
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions FrostyEditor/Windows/ModSettingsWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ private void saveButton_Click(object sender, System.Windows.RoutedEventArgs e)
return;
}

string[] approvedDomains = { "nexusmods.com", "moddb.com" };

if (modPageLinkTextBox.Text != "" && (!Uri.IsWellFormedUriString(modPageLinkTextBox.Text, UriKind.RelativeOrAbsolute) || !approvedDomains.Any(modPageLinkTextBox.Text.Contains)))
if (modPageLinkTextBox.Text != "" && (!Uri.IsWellFormedUriString(modPageLinkTextBox.Text, UriKind.RelativeOrAbsolute)))
{
FrostyMessageBox.Show("Link needs to be valid", "Frosty Editor");
return;
Expand Down

0 comments on commit 61b4b69

Please sign in to comment.