We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7522aa commit a4f7467Copy full SHA for a4f7467
dist/content-visibility.js
@@ -160,10 +160,11 @@
160
161
// Try to execute the metric, with ultimate fallback
162
try {
163
- return contentVisibility();
+ const result = contentVisibility();
164
+ return JSON.stringify(result);
165
} catch (error) {
166
// Ultimate fallback - if even the main function fails
- return {
167
+ const fallbackResult = {
168
used: false,
169
count: 0,
170
values: [],
@@ -175,5 +176,6 @@
175
176
errors: ['ultimate_error: ' + error.message]
177
}
178
};
179
+ return JSON.stringify(fallbackResult);
180
181
})();
0 commit comments