Skip to content

Commit

Permalink
[FirefoxReleaseNotesBridge] Attempt to fix check failures
Browse files Browse the repository at this point in the history
  • Loading branch information
tillcash authored Jan 26, 2024
1 parent de4a437 commit 6763c16
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bridges/FirefoxReleaseNotesBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ class FirefoxReleaseNotesBridge extends BridgeAbstract
'platform' => [
'name' => 'Platform',
'type' => 'list',
'required' => true,
'values' => [
'Desktop' => '',
'Desktop' => 'desktop',
'Beta' => 'beta',
'Nightly' => 'nightly',
'Android' => 'android',
Expand All @@ -31,7 +32,13 @@ public function getName()
public function collectData()
{
$platform = $this->getKey('platform');
$url = self::URI . $this->getInput('platform') . '/notes/';

if ($platform === 'Desktop') {
$url = self::URI . '/notes/';
} else {
$url = self::URI . $this->getInput('platform') . '/notes/';
}

$dom = getSimpleHTMLDOM($url);

$version = $dom->find('.c-release-version', 0)->innertext;
Expand Down

0 comments on commit 6763c16

Please sign in to comment.