mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Extend the Google Service check and also include subdomains (#1560)
This commit is contained in:
@@ -296,5 +296,12 @@ helpers.compareVersion = function (v1, v2) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
helpers.isGoogleDomain = function (initiatorDomain) {
|
helpers.isGoogleDomain = function (initiatorDomain) {
|
||||||
return GoogleDomains[initiatorDomain.replace('www.', '')] || false;
|
let parts = initiatorDomain.split('.');
|
||||||
|
|
||||||
|
// remove subdomains if exist
|
||||||
|
if (parts.length > 2) {
|
||||||
|
parts.shift();
|
||||||
|
}
|
||||||
|
|
||||||
|
return GoogleDomains[parts.join('.')] || false;
|
||||||
};
|
};
|
||||||
|
@@ -25,9 +25,9 @@
|
|||||||
<h2>New in LocalCDN:</h2>
|
<h2>New in LocalCDN:</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="release-notes-area">
|
<div class="release-notes-area">
|
||||||
<p></p>
|
<p>Improved</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li></li>
|
<li>Extend the Google Service check and also include subdomains (<a href="https://codeberg.org/nobody/LocalCDN/issues/1560">#1560</a>)</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="generator-section">
|
<div id="generator-section">
|
||||||
|
Reference in New Issue
Block a user