Browse Source

Projucer: A minor tidyup

tags/2021-05-28
Tom Poole 5 years ago
parent
commit
b6a6a7ea26
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      extras/Projucer/Source/Licenses/jucer_LicenseWebview.h

+ 2
- 6
extras/Projucer/Source/Licenses/jucer_LicenseWebview.h View File

@@ -212,9 +212,7 @@ private:
return false;
}
bool isValid = (url.getDomain().endsWith ("roli.com") || url.getDomain().endsWith ("juce.com"));
if (isValid)
if (isValidURL (url))
lastURL = page;
return true;
@@ -235,9 +233,7 @@ private:
URL url (page);
bool isGitHub = url.getDomain().endsWith ("github.com");
if (url.getDomain().endsWith ("roli.com")
|| url.getDomain().endsWith ("juce.com")
|| isGitHub)
if (isValidURL (url) || isGitHub)
{
url.launchInDefaultBrowser();


Loading…
Cancel
Save