We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db2d5e6 commit 09edf13Copy full SHA for 09edf13
1 file changed
lib/docs/filters/mdn/compat_tables.rb
@@ -46,7 +46,9 @@ def generate_compatibility_table()
46
end
47
48
def request_bcd_uris
49
- index_json = JSON.load(Net::HTTP.get(URI(current_url.to_s + '/index.json')))
+ url = current_url.to_s + '/index.json'
50
+ response = Request.run url
51
+ index_json = JSON.load response.body
52
53
uris = []
54
@@ -63,9 +65,9 @@ def request_bcd_uris
63
65
return uris
64
66
67
- def generate_compatibility_table_wrapper(uri)
-
68
- @json_data = JSON.load(Net::HTTP.get(URI(uri)))['data']
+ def generate_compatibility_table_wrapper(url)
69
70
+ @json_data = JSON.load(response.body)['data']
71
72
html_table = generate_basic_html_table()
73
0 commit comments