mdn: it's 2024

This commit is contained in:
Simon Legner 2024-08-20 20:37:43 +02:00
parent 144008d17b
commit e51c92e1b5
2 changed files with 10 additions and 4 deletions

View file

@ -24,11 +24,13 @@ module Docs
end
BROWSERS = {
# Desktop
'chrome' => 'Chrome',
'edge' => 'Edge',
'firefox' => 'Firefox',
'opera' => 'Opera',
'safari' => 'Safari',
# Mobile
'chrome_android' => 'Chrome Android',
'firefox_android' => 'Firefox for Android',
'opera_android' => 'Opera Android',
@ -43,7 +45,11 @@ module Docs
def browsers
if is_javascript
{}.merge(BROWSERS).merge({'deno' => 'Deno', 'nodejs' => 'Node.js'})
{}.merge(BROWSERS).merge({
# Server
'deno' => 'Deno',
'nodejs' => 'Node.js',
})
else
BROWSERS
end
@ -51,9 +57,9 @@ module Docs
def browser_types
if is_javascript
{'Desktop'=>6, 'Mobile'=>6, 'Server'=>2,}
{'Desktop'=>5, 'Mobile'=>6, 'Server'=>2,}
else
{'Desktop'=>6, 'Mobile'=>6,}
{'Desktop'=>5, 'Mobile'=>6,}
end
end

View file

@ -18,7 +18,7 @@ module Docs
}
options[:attribution] = <<-HTML
&copy; 2005&ndash;2023 MDN contributors.<br>
&copy; 2005&ndash;2024 MDN contributors.<br>
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
HTML