@reuters-graphics/graphics-components 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,10 +14,10 @@ onMount(async () => {
|
|
|
14
14
|
try {
|
|
15
15
|
const response = await fetch('https://www.reuters.com/site-api/footer/?' +
|
|
16
16
|
new URLSearchParams({
|
|
17
|
-
|
|
17
|
+
_website: 'reuters',
|
|
18
18
|
outputType: 'json',
|
|
19
19
|
}));
|
|
20
|
-
const footerData =
|
|
20
|
+
const footerData = await response.json();
|
|
21
21
|
// Dumb verification...
|
|
22
22
|
if (!footerData[0].company_description)
|
|
23
23
|
return;
|
|
@@ -14,10 +14,10 @@ onMount(async () => {
|
|
|
14
14
|
try {
|
|
15
15
|
const response = await fetch('https://www.reuters.com/site-api/header/?' +
|
|
16
16
|
new URLSearchParams({
|
|
17
|
-
|
|
17
|
+
_website: 'reuters',
|
|
18
18
|
outputType: 'json',
|
|
19
19
|
}));
|
|
20
|
-
const headerData =
|
|
20
|
+
const headerData = await response.json();
|
|
21
21
|
// Dumb verification...
|
|
22
22
|
if (!headerData[0].sections)
|
|
23
23
|
return;
|