Fix Source selection (HTML) which broke in the last release

This commit is contained in:
Imran Remtulla
2023-10-14 05:24:08 -04:00
parent 52b1d1fe33
commit a726b09f26
4 changed files with 5 additions and 3 deletions

View File

@@ -330,6 +330,7 @@ abstract class AppSource {
bool appIdInferIsOptional = false;
bool allowSubDomains = false;
bool naiveStandardVersionDetection = false;
bool neverAutoSelect = false;
AppSource() {
name = runtimeType.toString();
@@ -604,7 +605,7 @@ class SourceProvider {
}
}
if (source == null) {
for (var s in sources.where((element) => element.host == null)) {
for (var s in sources.where((element) => element.host == null && !element.neverAutoSelect)) {
try {
s.sourceSpecificStandardizeURL(url);
source = s;