mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
mdn: it's 2024
This commit is contained in:
parent
144008d17b
commit
e51c92e1b5
2 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ module Docs
|
|||
}
|
||||
|
||||
options[:attribution] = <<-HTML
|
||||
© 2005–2023 MDN contributors.<br>
|
||||
© 2005–2024 MDN contributors.<br>
|
||||
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
|
||||
HTML
|
||||
|
||||
|
|
Loading…
Reference in a new issue