1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Projucer: A minor tidyup

This commit is contained in:
Tom Poole 2020-04-06 12:09:19 +01:00
parent 896a68dd7b
commit b6a6a7ea26

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();